From 4a62627989059e9b7d3266a49cbd22cbed2326d6 Mon Sep 17 00:00:00 2001 From: Sangjung Woo Date: Fri, 31 Jul 2020 13:53:08 +0900 Subject: [PATCH] [Test/CAPI] Update the testcase of element-wise control function This patch updates the testcase of element-wise control function since the negative testcase does not have a negative code. Signed-off-by: Sangjung Woo --- tests/tizen_capi/unittest_tizen_capi.cc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/tizen_capi/unittest_tizen_capi.cc b/tests/tizen_capi/unittest_tizen_capi.cc index f2c6053..3b04572 100644 --- a/tests/tizen_capi/unittest_tizen_capi.cc +++ b/tests/tizen_capi/unittest_tizen_capi.cc @@ -6475,11 +6475,14 @@ TEST (nnstreamer_capi_element, set_property_double_29_n) EXPECT_EQ (status, ML_ERROR_NONE); /* Test Code */ - status = ml_pipeline_element_set_property_double (vscale_h, "sharpness", 0.72); - EXPECT_EQ (status, ML_ERROR_NONE); + status = ml_pipeline_element_set_property_double (nullptr, "sharpness", 0.72); + EXPECT_NE (status, ML_ERROR_NONE); - status = ml_pipeline_element_set_property_double (vscale_h, "sharpness", 1.43); - EXPECT_EQ (status, ML_ERROR_NONE); + status = ml_pipeline_element_set_property_double (vscale_h, "WRONG_NAME", 1.43); + EXPECT_NE (status, ML_ERROR_NONE); + + status = ml_pipeline_element_set_property_int32 (vscale_h, "sharpness", 10); + EXPECT_NE (status, ML_ERROR_NONE); status = ml_pipeline_element_release_handle (vscale_h); EXPECT_EQ (status, ML_ERROR_NONE); -- 2.7.4