[UTC][connection][Non-ACR] Fix error handling 84/299384/1
authorJaehyun Kim <jeik01.kim@samsung.com>
Wed, 27 Sep 2023 04:05:31 +0000 (13:05 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Wed, 27 Sep 2023 04:05:49 +0000 (13:05 +0900)
Fix UTC failure issue in emulator image.

Change-Id: I5d4567b65c2e947bb6040af4aa988b1d70ff5f57
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
src/utc/connection/utc-network-connection.c

index 8fa5096..fafcad8 100755 (executable)
@@ -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;
        }