[UTC][usb-host][Non-ACR][Fix utc_usb_host_config_destroy_n because this is for nagati...
authorlokilee73 <changjoo.lee@samsung.com>
Fri, 28 Sep 2018 07:17:29 +0000 (16:17 +0900)
committerlokilee73 <changjoo.lee@samsung.com>
Fri, 28 Sep 2018 07:19:28 +0000 (16:19 +0900)
Change-Id: I04aea0f060e8aec0c256e1f4d777151ebadf460b
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
src/utc/usb-host/utc-usb-host.c

index b6b7b67f8410a37050ff1bf1674c3d057d96330b..814f87bab1352f39fca16796e70a32953b517429 100755 (executable)
@@ -624,7 +624,7 @@ int utc_usb_host_config_destroy_p(void)
 /**
  * @testcase           utc_usb_host_config_destroy_n
  * @since_tizen                3.0
- * @type               positive
+ * @type               negative
  * @description                Destroy configuration
  * @scenario           Passing NULL configuration should end with ERROR_INVALID_PARAMETER
  */
@@ -633,11 +633,11 @@ int utc_usb_host_config_destroy_n(void)
        usb_host_config_h config;
        int ret;
 
-       ret = usb_host_device_get_config(dev, 0, &config);
-       assert_eq_supp(ret, USB_HOST_ERROR_NONE);
-       assert_neq(config, NULL);
+       ret = usb_host_device_get_config(NULL, 0, &config);
+       assert_eq_supp(ret, USB_HOST_ERROR_INVALID_PARAMETER);
 
-       usb_host_config_destroy(config);
+       ret = usb_host_device_get_config(dev, 0, NULL);
+       assert_eq_supp(ret, USB_HOST_ERROR_INVALID_PARAMETER);
 
        return 0;
 }