From: Parichay Kapoor Date: Mon, 27 Jul 2020 02:00:15 +0000 (+0900) Subject: [unittest] Bug fix for c-api unittest X-Git-Tag: accepted/tizen/unified/20200802.223717~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e8c18a160a33816acd56e58cc59c7306d6ea6a10;p=platform%2Fupstream%2Fnnstreamer.git [unittest] Bug fix for c-api unittest Bug fix for c-api unittest when tensorflow-lite is not present Bug of destroy info without create in invoke_01 Signed-off-by: Parichay Kapoor --- diff --git a/tests/tizen_capi/unittest_tizen_capi.cc b/tests/tizen_capi/unittest_tizen_capi.cc index 2213472..e510dc3 100644 --- a/tests/tizen_capi/unittest_tizen_capi.cc +++ b/tests/tizen_capi/unittest_tizen_capi.cc @@ -2342,12 +2342,13 @@ TEST (nnstreamer_capi_singleshot, invoke_01) status = ml_single_close (single); EXPECT_EQ (status, ML_ERROR_NONE); + ml_tensors_info_destroy (in_res); + ml_tensors_info_destroy (out_res); + skip_test: g_free (test_model); ml_tensors_info_destroy (in_info); ml_tensors_info_destroy (out_info); - ml_tensors_info_destroy (in_res); - ml_tensors_info_destroy (out_res); } /**