From 50868375aa64960d863e7f8e1c3d0d6a8f1f0226 Mon Sep 17 00:00:00 2001 From: taesub kim Date: Wed, 16 Aug 2017 09:57:41 +0900 Subject: [PATCH] [UTC][connection][NonACR][TNEXT-1580, Fixed testhub tc crash issue] Change-Id: Iebb3f11831dd0ee78c44ac01fae903f5172cae7f Signed-off-by: Taesub Kim --- src/utc/connection/utc-network-connection.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/utc/connection/utc-network-connection.c b/src/utc/connection/utc-network-connection.c index 3d493ef..c27e827 100755 --- a/src/utc/connection/utc-network-connection.c +++ b/src/utc/connection/utc-network-connection.c @@ -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; -- 2.7.4