From: Youngjae Cho Date: Tue, 30 Jul 2024 07:41:52 +0000 (+0900) Subject: [UTC][runtime-info][system-info][usb-host][NonACR] Fix native no assertion X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d12d62e8c1097cad8dd6b9df37b18a8ae5d22bba;p=test%2Ftct%2Fnative%2Fapi.git [UTC][runtime-info][system-info][usb-host][NonACR] Fix native no assertion Change-Id: Ieddea4edd9de4114354e069a0a62694a9d0feaa4 Signed-off-by: Youngjae Cho --- diff --git a/src/utc/runtime-info/utc-runtime-info.c b/src/utc/runtime-info/utc-runtime-info.c index 8a2be87a9..09e0a6df7 100755 --- a/src/utc/runtime-info/utc-runtime-info.c +++ b/src/utc/runtime-info/utc-runtime-info.c @@ -80,6 +80,7 @@ int utc_runtime_info_get_value_double_n(void) int utc_runtime_info_get_value_double_p(void) { //TODO: current runtime_info does not have double type value. + assert(1); return 0; } @@ -91,6 +92,7 @@ int utc_runtime_info_get_value_double_p(void) int utc_runtime_info_get_value_string_p(void) { //TODO: current runtime_info does not have string type value. + assert(1); return 0; } @@ -305,6 +307,7 @@ int utc_runtime_info_BATTERY_IS_CHARGING_p1(void) { bool value; int retcode; + int ret; runtime_info_key_e key = RUNTIME_INFO_KEY_BATTERY_IS_CHARGING; retcode = runtime_info_get_value_bool(key, &value); @@ -314,7 +317,10 @@ int utc_runtime_info_BATTERY_IS_CHARGING_p1(void) return 0; } - return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/battery"); + ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/battery"); + assert_eq(ret, 0); + + return 0; } @@ -326,6 +332,7 @@ int utc_runtime_info_BATTERY_IS_CHARGING_p1(void) int utc_runtime_info_BATTERY_IS_CHARGING_p2(void) { int retcode; + int ret; runtime_info_key_e key = RUNTIME_INFO_KEY_BATTERY_IS_CHARGING; retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL); @@ -338,7 +345,10 @@ int utc_runtime_info_BATTERY_IS_CHARGING_p2(void) return 0; } - return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/battery"); + ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/battery"); + assert_eq(ret, 0); + + return 0; } @@ -425,6 +435,7 @@ int utc_runtime_info_BLUETOOTH_ENABLED_p1(void) { bool value; int retcode; + int ret; runtime_info_key_e key = RUNTIME_INFO_KEY_BLUETOOTH_ENABLED; retcode = runtime_info_get_value_bool(key, &value); @@ -434,7 +445,10 @@ int utc_runtime_info_BLUETOOTH_ENABLED_p1(void) return 0; } - return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.bluetooth"); + ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.bluetooth"); + assert_eq(ret, 0); + + return 0; } @@ -446,6 +460,7 @@ int utc_runtime_info_BLUETOOTH_ENABLED_p1(void) int utc_runtime_info_BLUETOOTH_ENABLED_p2(void) { int retcode; + int ret; runtime_info_key_e key = RUNTIME_INFO_KEY_BLUETOOTH_ENABLED; retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL); @@ -458,7 +473,10 @@ int utc_runtime_info_BLUETOOTH_ENABLED_p2(void) return 0; } - return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.bluetooth"); + ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.bluetooth"); + assert_eq(ret, 0); + + return 0; } @@ -545,11 +563,15 @@ int utc_runtime_info_BLUETOOTH_TETHERING_ENABLED_p1(void) { bool value; int retcode; + int ret; runtime_info_key_e key = RUNTIME_INFO_KEY_BLUETOOTH_TETHERING_ENABLED; retcode = runtime_info_get_value_bool(key, &value); - return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.tethering.bluetooth"); + ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.tethering.bluetooth"); + assert_eq(ret, 0); + + return 0; } @@ -561,6 +583,7 @@ int utc_runtime_info_BLUETOOTH_TETHERING_ENABLED_p1(void) int utc_runtime_info_BLUETOOTH_TETHERING_ENABLED_p2(void) { int retcode; + int ret; runtime_info_key_e key = RUNTIME_INFO_KEY_BLUETOOTH_TETHERING_ENABLED; retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL); @@ -568,7 +591,10 @@ int utc_runtime_info_BLUETOOTH_TETHERING_ENABLED_p2(void) if (retcode == RUNTIME_INFO_ERROR_NONE) runtime_info_unset_changed_cb(key); - return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.tethering.bluetooth"); + ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.tethering.bluetooth"); + assert_eq(ret, 0); + + return 0; } @@ -655,11 +681,15 @@ int utc_runtime_info_DATA_ROAMING_ENABLED_p1(void) { bool value; int retcode; + int ret; runtime_info_key_e key = RUNTIME_INFO_KEY_DATA_ROAMING_ENABLED; retcode = runtime_info_get_value_bool(key, &value); - return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.telephony"); + ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.telephony"); + assert_eq(ret, 0); + + return 0; } @@ -671,13 +701,17 @@ int utc_runtime_info_DATA_ROAMING_ENABLED_p1(void) int utc_runtime_info_DATA_ROAMING_ENABLED_p2(void) { int retcode; + int ret; runtime_info_key_e key = RUNTIME_INFO_KEY_DATA_ROAMING_ENABLED; retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL); if (retcode == RUNTIME_INFO_ERROR_NONE) runtime_info_unset_changed_cb(key); - return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.telephony"); + ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.telephony"); + assert_eq(ret, 0); + + return 0; } @@ -785,6 +819,7 @@ int utc_runtime_info_GPS_STATUS_p1(void) int utc_runtime_info_GPS_STATUS_p2(void) { int retcode; + int ret; runtime_info_key_e key = RUNTIME_INFO_KEY_GPS_STATUS; retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL); @@ -797,7 +832,10 @@ int utc_runtime_info_GPS_STATUS_p2(void) return 0; } - return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/location.gps"); + ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/location.gps"); + assert_eq(ret, 0); + + return 0; } @@ -900,11 +938,15 @@ int utc_runtime_info_PACKET_DATA_ENABLED_p1(void) { bool value; int retcode; + int ret; runtime_info_key_e key = RUNTIME_INFO_KEY_PACKET_DATA_ENABLED; retcode = runtime_info_get_value_bool(key, &value); - return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.telephony"); + ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.telephony"); + assert_eq(ret, 0); + + return 0; } @@ -916,6 +958,7 @@ int utc_runtime_info_PACKET_DATA_ENABLED_p1(void) int utc_runtime_info_PACKET_DATA_ENABLED_p2(void) { int retcode; + int ret; runtime_info_key_e key = RUNTIME_INFO_KEY_PACKET_DATA_ENABLED; retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL); @@ -923,7 +966,10 @@ int utc_runtime_info_PACKET_DATA_ENABLED_p2(void) if (retcode == RUNTIME_INFO_ERROR_NONE) runtime_info_unset_changed_cb(key); - return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.telephony"); + ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.telephony"); + assert_eq(ret, 0); + + return 0; } @@ -1012,6 +1058,7 @@ int utc_runtime_info_AUTO_ROTATION_ENABLED_p1(void) { bool value; int retcode; + int ret; runtime_info_key_e key = RUNTIME_INFO_KEY_AUTO_ROTATION_ENABLED; retcode = runtime_info_get_value_bool(key, &value); @@ -1021,7 +1068,10 @@ int utc_runtime_info_AUTO_ROTATION_ENABLED_p1(void) return 0; } - return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/screen.auto_rotation"); + ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/screen.auto_rotation"); + assert_eq(ret, 0); + + return 0; } @@ -1033,6 +1083,7 @@ int utc_runtime_info_AUTO_ROTATION_ENABLED_p1(void) int utc_runtime_info_AUTO_ROTATION_ENABLED_p2(void) { int retcode; + int ret; runtime_info_key_e key = RUNTIME_INFO_KEY_AUTO_ROTATION_ENABLED; retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL); @@ -1045,7 +1096,10 @@ int utc_runtime_info_AUTO_ROTATION_ENABLED_p2(void) return 0; } - return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/screen.auto_rotation"); + ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/screen.auto_rotation"); + assert_eq(ret, 0); + + return 0; } @@ -1134,11 +1188,15 @@ int utc_runtime_info_USB_TETHERING_ENABLED_p1(void) { bool value; int retcode; + int ret; runtime_info_key_e key = RUNTIME_INFO_KEY_USB_TETHERING_ENABLED; retcode = runtime_info_get_value_bool(key, &value); - return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.tethering.usb"); + ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.tethering.usb"); + assert_eq(ret, 0); + + return 0; } @@ -1150,6 +1208,7 @@ int utc_runtime_info_USB_TETHERING_ENABLED_p1(void) int utc_runtime_info_USB_TETHERING_ENABLED_p2(void) { int retcode; + int ret; runtime_info_key_e key = RUNTIME_INFO_KEY_USB_TETHERING_ENABLED; retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL); @@ -1157,7 +1216,10 @@ int utc_runtime_info_USB_TETHERING_ENABLED_p2(void) if (retcode == RUNTIME_INFO_ERROR_NONE) runtime_info_unset_changed_cb(key); - return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.tethering.usb"); + ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.tethering.usb"); + assert_eq(ret, 0); + + return 0; } @@ -1244,11 +1306,15 @@ int utc_runtime_info_VIBRATION_ENABLED_p1(void) { bool value; int retcode; + int ret; runtime_info_key_e key = RUNTIME_INFO_KEY_VIBRATION_ENABLED; retcode = runtime_info_get_value_bool(key, &value); - return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/feedback.vibration"); + ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/feedback.vibration"); + assert_eq(ret, 0); + + return 0; } @@ -1260,6 +1326,7 @@ int utc_runtime_info_VIBRATION_ENABLED_p1(void) int utc_runtime_info_VIBRATION_ENABLED_p2(void) { int retcode; + int ret; runtime_info_key_e key = RUNTIME_INFO_KEY_VIBRATION_ENABLED; retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL); @@ -1267,7 +1334,10 @@ int utc_runtime_info_VIBRATION_ENABLED_p2(void) if (retcode == RUNTIME_INFO_ERROR_NONE) runtime_info_unset_changed_cb(key); - return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/feedback.vibration"); + ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/feedback.vibration"); + assert_eq(ret, 0); + + return 0; } @@ -1354,11 +1424,15 @@ int utc_runtime_info_WIFI_HOTSPOT_ENABLED_p1(void) { bool value; int retcode; + int ret; runtime_info_key_e key = RUNTIME_INFO_KEY_WIFI_HOTSPOT_ENABLED; retcode = runtime_info_get_value_bool(key, &value); - return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.tethering.wifi"); + ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.tethering.wifi"); + assert_eq(ret, 0); + + return 0; } @@ -1370,6 +1444,7 @@ int utc_runtime_info_WIFI_HOTSPOT_ENABLED_p1(void) int utc_runtime_info_WIFI_HOTSPOT_ENABLED_p2(void) { int retcode; + int ret; runtime_info_key_e key = RUNTIME_INFO_KEY_WIFI_HOTSPOT_ENABLED; retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL); @@ -1377,7 +1452,10 @@ int utc_runtime_info_WIFI_HOTSPOT_ENABLED_p2(void) if (retcode == RUNTIME_INFO_ERROR_NONE) runtime_info_unset_changed_cb(key); - return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.tethering.wifi"); + ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/network.tethering.wifi"); + assert_eq(ret, 0); + + return 0; } @@ -1823,6 +1901,7 @@ int utc_runtime_info_CHARGER_CONNECTED_p1(void) { bool value; int retcode; + int ret; runtime_info_key_e key = RUNTIME_INFO_KEY_CHARGER_CONNECTED; retcode = runtime_info_get_value_bool(key, &value); @@ -1832,7 +1911,10 @@ int utc_runtime_info_CHARGER_CONNECTED_p1(void) return 0; } - return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/battery"); + ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/battery"); + assert_eq(ret, 0); + + return 0; } @@ -1844,6 +1926,7 @@ int utc_runtime_info_CHARGER_CONNECTED_p1(void) int utc_runtime_info_CHARGER_CONNECTED_p2(void) { int retcode; + int ret; runtime_info_key_e key = RUNTIME_INFO_KEY_CHARGER_CONNECTED; retcode = runtime_info_set_changed_cb(key, runtime_info_changed, NULL); @@ -1856,7 +1939,10 @@ int utc_runtime_info_CHARGER_CONNECTED_p2(void) return 0; } - return compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/battery"); + ret = compare_retcode_with_feature_support(retcode, "http://tizen.org/feature/battery"); + assert_eq(ret, 0); + + return 0; } diff --git a/src/utc/system-info/utc-system-info.c b/src/utc/system-info/utc-system-info.c index 427b928f2..8a3d6584f 100755 --- a/src/utc/system-info/utc-system-info.c +++ b/src/utc/system-info/utc-system-info.c @@ -94,6 +94,7 @@ int utc_system_info_get_platform_int_n(void) */ int utc_system_info_get_platform_double_p(void) { + assert(1); return 0; } diff --git a/src/utc/usb-host/utc-usb-host.c b/src/utc/usb-host/utc-usb-host.c index 3fde67918..5d39747e7 100755 --- a/src/utc/usb-host/utc-usb-host.c +++ b/src/utc/usb-host/utc-usb-host.c @@ -2145,7 +2145,12 @@ static int test_loopback_transfer(usb_host_endpoint_h in, usb_host_endpoint_h ou */ int utc_usb_host_interrupt_transfer_p(void) { - return test_loopback_transfer(ep3, ep4); + int ret; + + ret = test_loopback_transfer(ep3, ep4); + assert_eq(ret, 0); + + return 0; } /** @@ -2157,7 +2162,12 @@ int utc_usb_host_interrupt_transfer_p(void) */ int utc_usb_host_transfer_p(void) { - return test_loopback_transfer(ep1, ep2); + int ret; + + ret = test_loopback_transfer(ep1, ep2); + assert_eq(ret, 0); + + return 0; } /**