From: Hwankyu Jhun Date: Tue, 30 Oct 2018 05:43:12 +0000 (+0900) Subject: [UTC][application][Non-ACR][Fixed wrong test case] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=23251a35c1e6e822948688ca83c4dc7199bd880f;p=test%2Ftct%2Fnative%2Fapi.git [UTC][application][Non-ACR][Fixed wrong test case] Change-Id: Idd695de53124cd19f96e608dd616481ef6ef7405 Signed-off-by: Hwankyu Jhun --- diff --git a/src/utc/application/res/mobile/org.example.reply-1.0.0-arm.tpk b/src/utc/application/res/mobile/org.example.reply-1.0.0-arm.tpk new file mode 100644 index 000000000..4038a7d94 Binary files /dev/null and b/src/utc/application/res/mobile/org.example.reply-1.0.0-arm.tpk differ diff --git a/src/utc/application/res/mobile/org.example.reply-1.0.0-i386.tpk b/src/utc/application/res/mobile/org.example.reply-1.0.0-i386.tpk new file mode 100644 index 000000000..31d8d5a49 Binary files /dev/null and b/src/utc/application/res/mobile/org.example.reply-1.0.0-i386.tpk differ diff --git a/src/utc/application/res/tizeniot/org.example.reply-1.0.0-arm.tpk b/src/utc/application/res/tizeniot/org.example.reply-1.0.0-arm.tpk new file mode 100644 index 000000000..4038a7d94 Binary files /dev/null and b/src/utc/application/res/tizeniot/org.example.reply-1.0.0-arm.tpk differ diff --git a/src/utc/application/res/tizeniot/org.example.reply-1.0.0-i386.tpk b/src/utc/application/res/tizeniot/org.example.reply-1.0.0-i386.tpk new file mode 100644 index 000000000..31d8d5a49 Binary files /dev/null and b/src/utc/application/res/tizeniot/org.example.reply-1.0.0-i386.tpk differ diff --git a/src/utc/application/res/tv/org.example.reply-1.0.0-arm.tpk b/src/utc/application/res/tv/org.example.reply-1.0.0-arm.tpk new file mode 100644 index 000000000..4038a7d94 Binary files /dev/null and b/src/utc/application/res/tv/org.example.reply-1.0.0-arm.tpk differ diff --git a/src/utc/application/res/tv/org.example.reply-1.0.0-i386.tpk b/src/utc/application/res/tv/org.example.reply-1.0.0-i386.tpk new file mode 100644 index 000000000..31d8d5a49 Binary files /dev/null and b/src/utc/application/res/tv/org.example.reply-1.0.0-i386.tpk differ diff --git a/src/utc/application/res/wearable/org.example.reply-1.0.0-arm.tpk b/src/utc/application/res/wearable/org.example.reply-1.0.0-arm.tpk new file mode 100644 index 000000000..4038a7d94 Binary files /dev/null and b/src/utc/application/res/wearable/org.example.reply-1.0.0-arm.tpk differ diff --git a/src/utc/application/res/wearable/org.example.reply-1.0.0-i386.tpk b/src/utc/application/res/wearable/org.example.reply-1.0.0-i386.tpk new file mode 100644 index 000000000..31d8d5a49 Binary files /dev/null and b/src/utc/application/res/wearable/org.example.reply-1.0.0-i386.tpk differ diff --git a/src/utc/application/utc_app_control.c b/src/utc/application/utc_app_control.c index cb9f2af34..4450a9f65 100755 --- a/src/utc/application/utc_app_control.c +++ b/src/utc/application/utc_app_control.c @@ -3345,6 +3345,24 @@ end: return ret; } +static void __app_control_reply_cb(app_control_h request, app_control_h reply, + app_control_result_e result, void *user_data) +{ + dlog_print(DLOG_INFO, LOG_TAG, "Result: %d", result); + if (result == APP_CONTROL_RESULT_SUCCEEDED) + normal_exit(0); + else + normal_exit(1); +} + +static void __app_control_result_cb_with_reply(app_control_h request, + app_control_error_e result, void *user_data) +{ + dlog_print(DLOG_INFO, LOG_TAG, "Result: %d", result); + if (result != APP_CONTROL_ERROR_NONE) + normal_exit(1); +} + /** * @testcase utc_application_app_control_send_launch_request_async_p2 @@ -3373,15 +3391,16 @@ int utc_application_app_control_send_launch_request_async_p2(void) goto end; } - ret = app_control_set_app_id(handle, "org.tizen.helloworld"); + ret = app_control_set_app_id(handle, "org.example.reply"); if (ret != APP_CONTROL_ERROR_NONE) { dlog_print(DLOG_ERROR, LOG_TAG, "Failed to set application ID"); normal_exit(1); goto end; } - ret = app_control_send_launch_request_async(handle, __app_control_result_cb, - dts_app_control_reply_cb, NULL); + ret = app_control_send_launch_request_async(handle, + __app_control_result_cb_with_reply, + __app_control_reply_cb, NULL); if (ret != APP_CONTROL_ERROR_NONE) { dlog_print(DLOG_ERROR, LOG_TAG, "Failed to send launch request async"); normal_exit(1);