[Tests/CAPI] Abort the current test when ml_single_open is failed
authorWook Song <wook16.song@samsung.com>
Thu, 26 Mar 2020 09:07:03 +0000 (18:07 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Sun, 29 Mar 2020 03:00:55 +0000 (12:00 +0900)
commite01e778b8cb672b19810fb5d76919505bf81b520
tree2b3980ae1ef930030e6966afb8170d28c7555db3
parentefeda5332c0f06792e17eb9a9f1cd12568b96385
[Tests/CAPI] Abort the current test when ml_single_open is failed

Using the instance of the model handle after failing to ml_single_open
causes undefined behaviour. To prevent such cases, this patch changes
the line for checking the result of ml_single_open() from EXPECT_EQ to
ASSERT_EQ that aborts the current test function.

Signed-off-by: Wook Song <wook16.song@samsung.com>
tests/tizen_capi/unittest_tizen_capi.cc