From: lokilee73 Date: Fri, 28 Sep 2018 07:17:29 +0000 (+0900) Subject: [UTC][usb-host][Non-ACR][Fix utc_usb_host_config_destroy_n because this is for nagati... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7da419bc5408df6e367613a8fc05cdc755ef1c3f;p=test%2Ftct%2Fnative%2Fapi.git [UTC][usb-host][Non-ACR][Fix utc_usb_host_config_destroy_n because this is for nagative test case] Change-Id: I04aea0f060e8aec0c256e1f4d777151ebadf460b Signed-off-by: lokilee73 --- diff --git a/src/utc/usb-host/utc-usb-host.c b/src/utc/usb-host/utc-usb-host.c index b6b7b67f8..814f87bab 100755 --- a/src/utc/usb-host/utc-usb-host.c +++ b/src/utc/usb-host/utc-usb-host.c @@ -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; }