From: Jaehyun Kim Date: Mon, 17 Feb 2020 07:59:05 +0000 (+0900) Subject: [UTC][connection][Non-ACR][Fix incorrect test scenario] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4c36e226e92b3f45d260cd9018a05abe74ebb737;p=test%2Ftct%2Fnative%2Fapi.git [UTC][connection][Non-ACR][Fix incorrect test scenario] Change-Id: I641e33ef88116afddf65283342995c1ef36cb66e Signed-off-by: Jaehyun Kim (cherry picked from commit 751eaaace2e8ecb982dde25e7308739a459217fa) --- diff --git a/src/utc/connection/utc-connection-profile.c b/src/utc/connection/utc-connection-profile.c index bae2bcfc2..b44be7425 100755 --- a/src/utc/connection/utc-connection-profile.c +++ b/src/utc/connection/utc-connection-profile.c @@ -3029,7 +3029,7 @@ int utc_connection_profile_get_prefix_length_p(void) int ret = connection_get_current_profile(connection, &profile_temp); CHECK_RETURN("connection_profile_get_prefix_length", ret, CONNECTION_ERROR_NONE); - connection_profile_get_prefix_length(profile_temp, CONNECTION_ADDRESS_FAMILY_IPV4, &length); + ret = connection_profile_get_prefix_length(profile_temp, CONNECTION_ADDRESS_FAMILY_IPV4, &length); CHECK_RETURN("connection_profile_get_prefix_length", ret, CONNECTION_ERROR_NONE); ret = connection_profile_get_prefix_length(profile_temp, CONNECTION_ADDRESS_FAMILY_IPV6, &length); CHECK_RETURN("connection_profile_get_prefix_length", ret, CONNECTION_ERROR_NONE); diff --git a/src/utc/connection/utc-network-connection.c b/src/utc/connection/utc-network-connection.c index bf9f5d49c..192ea681a 100755 --- a/src/utc/connection/utc-network-connection.c +++ b/src/utc/connection/utc-network-connection.c @@ -2215,22 +2215,13 @@ int utc_connection_remove_profile_p(void) ret = connection_remove_profile(connection, profile_temp); CHECK_RETURN("connection_remove_profile", ret, CONNECTION_ERROR_NONE); } else { - ret = test_get_any_profile(&profile_h); - assert(profile_h); - profile_temp = profile_h; - - connection_profile_type_e type; - - ret = connection_profile_get_type(profile_temp, &type); - CHECK_RETURN("connection_profile_get_type", ret, CONNECTION_ERROR_NONE); - - if (type == CONNECTION_PROFILE_TYPE_ETHERNET || type == CONNECTION_PROFILE_TYPE_BT) { - ret = connection_remove_profile(connection, profile_temp); - CHECK_RETURN("connection_remove_profile", ret, CONNECTION_ERROR_INVALID_PARAMETER); - } else { - ret = connection_remove_profile(connection, profile_temp); - CHECK_RETURN("connection_remove_profile", ret, CONNECTION_ERROR_NONE); - } + /** + * The purpose of this TC is to remove the added profile in the utc_connection_add_profile_p + * and this scenario only works with telephony profile. + */ + connection_cellular_state_e state; + ret = connection_get_cellular_state(connection, &state); + CHECK_RETURN("connection_get_cellular_state", ret, CONNECTION_ERROR_NOT_SUPPORTED); } return 0;