[ITC][rpc-port][Non-ACR] Fix to fail rpc-port TC 84/264484/3
authorChanggyu Choi <changyu.choi@samsung.com>
Thu, 23 Sep 2021 05:56:39 +0000 (14:56 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Thu, 23 Sep 2021 07:36:42 +0000 (16:36 +0900)
Change-Id: I4921fb79184f9087ed064d0808965a4b745ff9da
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
packaging/itc/native-rpc-port-itc.xml
scripts_tpk/inst.sh
src/itc/rpc-port/ITs-rpc-port-parcel.c
src/itc/rpc-port/res/mobile/org.example.stubsample-1.0.0-i386.tpk [deleted file]
src/itc/rpc-port/res/mobile/org.example.stubsample-1.0.0-i586.tpk [changed mode: 0644->0755]
src/itc/rpc-port/res/tizeniot/org.example.stubsample-1.0.0-i386.tpk [deleted file]
src/itc/rpc-port/res/tv/org.example.stubsample-1.0.0-i386.tpk [deleted file]
src/itc/rpc-port/res/wearable/org.example.stubsample-1.0.0-i386.tpk [deleted file]
src/itc/rpc-port/res/wearable/org.example.stubsample-1.0.0-i586.tpk [changed mode: 0644->0755]
templates/tct-package-asan/inst.sh
templates/tct-package/inst.sh

index 33eeda78674034e9df3bb98938ce31aaf08339b2..b35112450350ce0d2557892c22d27797da70c66c 100755 (executable)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns="http://tizen.org/ns/packages" package="native-rpc-port-itc" version="0.1.0" api-version="6.0">
+<manifest xmlns="http://tizen.org/ns/packages" package="native-rpc-port-itc" version="0.1.0" api-version="6.5">
     <label>NativeRPCPORTTest</label>
     <author email="mymail@tizentest.com" href="www.tizentest.com">test</author>
     <description>Native API test Application</description>
@@ -11,7 +11,7 @@
        <background-category value="media"/>
        <background-category value="sensor"/>
     </service-application>
-       <privileges>    
+       <privileges>
         <privilege>http://tizen.org/privilege/datasharing</privilege>
         <privilege>http://tizen.org/privilege/appmanager.launch</privilege>
     </privileges>
index c69c3112e5934c443ee4870fcd7a394c5c074897..2101c41ad03e813d3eea27894d2b71b54836769c 100755 (executable)
@@ -200,7 +200,7 @@ fi
            applist=`ls $DEVICE_SUITE_TARGET_30/res | grep -e tpk -e rpk | grep x86_64`
     else
            applist=`ls $DEVICE_SUITE_TARGET_30/res | grep -e tpk -e rpk | grep x86 | grep -v x86_64`
-           applist2=`ls $DEVICE_SUITE_TARGET_30/res | grep -e tpk -e rpk | grep i386`
+           applist2=`ls $DEVICE_SUITE_TARGET_30/res | grep -e tpk -e rpk | grep -e i386 -e i586`
            applist="$applist $applist2"
     fi
 
index 6cd6f9d550286162ed0400e34bf2a98da59a96e6..b0b4f14371e2038fc9e6b171bd062eaca25d5f98 100755 (executable)
@@ -237,7 +237,6 @@ void RpcMessage_Onreceived_cb(const char *endpoint, const char *port_name, void
        }
 
        rpc_port_parcel_h hParcelReceive = NULL;
-       g_callbackOnMsgReceived = true;
        rpc_port_h hreceivedport= NULL;
 
        rpc_port_parcel_header_h hReceivedHeader;
@@ -370,6 +369,7 @@ void RpcMessage_Onreceived_cb(const char *endpoint, const char *port_name, void
                {
                        g_main_loop_quit(g_pMainLoop);
                }
+               g_callbackOnMsgReceived = true;
                normal_exit(0);
                return;
        }
@@ -471,6 +471,7 @@ void RpcMessage_Onreceived_cb(const char *endpoint, const char *port_name, void
                        return;
                }
                g_main_loop_quit(g_pMainLoop);
+               g_callbackOnMsgReceived = true;
                normal_exit(0);
                return;
        }
@@ -500,6 +501,7 @@ void RpcMessage_Onreceived_cb(const char *endpoint, const char *port_name, void
                g_pMainLoop = NULL;
        }
        FPRINTF("[Line : %d][%s] Leaving Callback RpcMessage_Onreceived_cb \\n", __LINE__, API_NAMESPACE);
+       g_callbackOnMsgReceived = true;
        normal_exit(0);
 }
 
@@ -1473,4 +1475,4 @@ int ITc_rpc_port_parcel_create_from_raw_p(void)
        return nRetVal;
 }
 /** @} */
-/** @} */
\ No newline at end of file
+/** @} */
diff --git a/src/itc/rpc-port/res/mobile/org.example.stubsample-1.0.0-i386.tpk b/src/itc/rpc-port/res/mobile/org.example.stubsample-1.0.0-i386.tpk
deleted file mode 100755 (executable)
index a77f5ff..0000000
Binary files a/src/itc/rpc-port/res/mobile/org.example.stubsample-1.0.0-i386.tpk and /dev/null differ
diff --git a/src/itc/rpc-port/res/tizeniot/org.example.stubsample-1.0.0-i386.tpk b/src/itc/rpc-port/res/tizeniot/org.example.stubsample-1.0.0-i386.tpk
deleted file mode 100755 (executable)
index a77f5ff..0000000
Binary files a/src/itc/rpc-port/res/tizeniot/org.example.stubsample-1.0.0-i386.tpk and /dev/null differ
diff --git a/src/itc/rpc-port/res/tv/org.example.stubsample-1.0.0-i386.tpk b/src/itc/rpc-port/res/tv/org.example.stubsample-1.0.0-i386.tpk
deleted file mode 100755 (executable)
index a77f5ff..0000000
Binary files a/src/itc/rpc-port/res/tv/org.example.stubsample-1.0.0-i386.tpk and /dev/null differ
diff --git a/src/itc/rpc-port/res/wearable/org.example.stubsample-1.0.0-i386.tpk b/src/itc/rpc-port/res/wearable/org.example.stubsample-1.0.0-i386.tpk
deleted file mode 100755 (executable)
index a77f5ff..0000000
Binary files a/src/itc/rpc-port/res/wearable/org.example.stubsample-1.0.0-i386.tpk and /dev/null differ
index 16abc6713cafc1f993de49c3a419f272798ec4a2..a598c852a4d0f62e466dd98a2d2d229bfe2a8bfb 100755 (executable)
@@ -190,7 +190,7 @@ function installpkg(){
        elif [ "$(echo $HOSTTYPE)" == "x86_64" ]; then
            applist=`ls $DEVICE_SUITE_TARGET_30/res | grep tpk | grep x86_64`
     else
-           applist=`ls $DEVICE_SUITE_TARGET_30/res | grep tpk | grep i386`
+           applist=`ls $DEVICE_SUITE_TARGET_30/res | grep tpk | grep -e i386 -e i586`
     fi
 
     for app in $applist
index 41b785aae707cba49d87d1fa655cb639e4b9d725..b3348b4881680da3612a6a20132b63c257567aa3 100755 (executable)
@@ -167,7 +167,7 @@ function installpkg(){
        elif [ "$(echo $HOSTTYPE)" == "x86_64" ]; then
            applist=`ls $DEVICE_SUITE_TARGET_30/res | grep tpk | grep x86_64`
     else
-           applist=`ls $DEVICE_SUITE_TARGET_30/res | grep tpk | grep i386`
+           applist=`ls $DEVICE_SUITE_TARGET_30/res | grep tpk | grep -e i386 -e i586`
     fi
 
     for app in $applist