/**
* @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
*/
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;
}