[UTC][connection][NonACR][TNEXT-1580, Fixed testhub tc crash issue]
authortaesub kim <taesub.kim@samsung.com>
Wed, 16 Aug 2017 00:57:41 +0000 (09:57 +0900)
committertaesub kim <taesub.kim@samsung.com>
Wed, 16 Aug 2017 00:58:27 +0000 (09:58 +0900)
Change-Id: Iebb3f11831dd0ee78c44ac01fae903f5172cae7f
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
src/utc/connection/utc-network-connection.c

index 3d493ef..c27e827 100755 (executable)
@@ -84,6 +84,8 @@ static void test_connection_closed_callback(connection_error_e result, void* use
 
 static void test_connection_set_default_callback(connection_error_e result, void* user_data)
 {
+       g_CallbackRet = result;
+       QUIT_GMAIN_LOOP;
 }
 
 static void test_connection_reset_profile_callback(connection_error_e result, void* user_data)
@@ -1112,6 +1114,7 @@ int utc_connection_set_default_cellular_service_profile_async_p(void)
     assert_eq(ret, CONNECTION_ERROR_NONE);
 
     ret = connection_set_default_cellular_service_profile_async(connection, service_type, profile_cellular, test_connection_set_default_callback, NULL);
+    RUN_GMAIN_LOOP;
     assert_eq(ret, CONNECTION_ERROR_NONE);
 
     return 0;