[UTC][application][Non-ACR][Fixed wrong test case]
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 30 Oct 2018 05:43:12 +0000 (14:43 +0900)
committerHwanKyu Jhun <h.jhun@samsung.com>
Thu, 1 Nov 2018 00:11:53 +0000 (00:11 +0000)
Change-Id: Idd695de53124cd19f96e608dd616481ef6ef7405
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/utc/application/res/mobile/org.example.reply-1.0.0-arm.tpk [new file with mode: 0644]
src/utc/application/res/mobile/org.example.reply-1.0.0-i386.tpk [new file with mode: 0644]
src/utc/application/res/tizeniot/org.example.reply-1.0.0-arm.tpk [new file with mode: 0644]
src/utc/application/res/tizeniot/org.example.reply-1.0.0-i386.tpk [new file with mode: 0644]
src/utc/application/res/tv/org.example.reply-1.0.0-arm.tpk [new file with mode: 0644]
src/utc/application/res/tv/org.example.reply-1.0.0-i386.tpk [new file with mode: 0644]
src/utc/application/res/wearable/org.example.reply-1.0.0-arm.tpk [new file with mode: 0644]
src/utc/application/res/wearable/org.example.reply-1.0.0-i386.tpk [new file with mode: 0644]
src/utc/application/utc_app_control.c

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 (file)
index 0000000..4038a7d
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 (file)
index 0000000..31d8d5a
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 (file)
index 0000000..4038a7d
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 (file)
index 0000000..31d8d5a
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 (file)
index 0000000..4038a7d
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 (file)
index 0000000..31d8d5a
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 (file)
index 0000000..4038a7d
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 (file)
index 0000000..31d8d5a
Binary files /dev/null and b/src/utc/application/res/wearable/org.example.reply-1.0.0-i386.tpk differ
index cb9f2af34b75899e99093f4f204063745aca3147..4450a9f65b1066d0aee4077c597895c5259d15b0 100755 (executable)
@@ -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);