From: Jaehyun Kim Date: Wed, 27 Sep 2023 04:05:31 +0000 (+0900) Subject: [UTC][connection][Non-ACR] Fix error handling X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F84%2F299384%2F1;p=test%2Ftct%2Fnative%2Fapi.git [UTC][connection][Non-ACR] Fix error handling Fix UTC failure issue in emulator image. Change-Id: I5d4567b65c2e947bb6040af4aa988b1d70ff5f57 Signed-off-by: Jaehyun Kim --- diff --git a/src/utc/connection/utc-network-connection.c b/src/utc/connection/utc-network-connection.c index 8fa509696..fafcad8f7 100755 --- a/src/utc/connection/utc-network-connection.c +++ b/src/utc/connection/utc-network-connection.c @@ -2195,7 +2195,12 @@ int utc_connection_close_profile_p(void) if (!telephony_supported && !wifi_supported) { ret = connection_close_profile(connection, profile_temp, test_connection_closed_callback, NULL); - CHECK_RETURN("connection_close_profile", ret, CONNECTION_ERROR_INVALID_PARAMETER); + if (!bt_tethering_supported) { + CHECK_RETURN("connection_close_profile", ret, CONNECTION_ERROR_NOT_SUPPORTED); + } else { + CHECK_RETURN("connection_close_profile", ret, CONNECTION_ERROR_INVALID_PARAMETER); + } + return 0; }