[UTC][wifi-direct][Non-ACR][Change expected error value for service discovery] 48/249148/2
authorYu <jiung.yu@samsung.com>
Mon, 7 Dec 2020 23:04:39 +0000 (08:04 +0900)
committerYu <jiung.yu@samsung.com>
Tue, 8 Dec 2020 01:12:45 +0000 (10:12 +0900)
Description: It seems that those CAPIs need to return not permitted error
at the context of negative TCs.

Change-Id: I4f18b2501aa507f62027d2f95045517d0f95896d
Signed-off-by: Yu jiung <jiung.yu@samsung.com>
src/utc/wifi-direct/utc-wifi-direct-service-discovery-negative.c

index 9b99f5608afe5a0fed86f521a806604d1f589219..0af59aa44e3142b8a61f608cea2d083d45fde14a 100755 (executable)
@@ -141,7 +141,7 @@ int utc_wifi_direct_start_service_discovery_n(void)
 
     ret = wifi_direct_start_service_discovery(mac_addr, 10);
 
-    assert_eq(ret, WIFI_DIRECT_ERROR_INVALID_PARAMETER);
+    assert_eq(ret, WIFI_DIRECT_ERROR_NOT_PERMITTED);
 
     return 0;
 }
@@ -175,7 +175,7 @@ int utc_wifi_direct_cancel_service_discovery_n(void)
 
     ret = wifi_direct_cancel_service_discovery(mac_addr, 10);
 
-    assert_eq(ret, WIFI_DIRECT_ERROR_INVALID_PARAMETER);
+    assert_eq(ret, WIFI_DIRECT_ERROR_NOT_PERMITTED);
 
     return 0;
 }