X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=test%2Fblackbox%2Frun_blackbox_tests%2Ftest_cases_hint_address.c;h=61be45188595ff63b9e51ad29ce33239c626ab9e;hb=fe5563f92021618b4a8b41e412c73d8364fcaf6e;hp=aacbbecdbd01acce5536c455e1f9a7b22a0c3165;hpb=dc68da94af8fca91748579c84ef5ed798db7efab;p=meshlink diff --git a/test/blackbox/run_blackbox_tests/test_cases_hint_address.c b/test/blackbox/run_blackbox_tests/test_cases_hint_address.c index aacbbecd..61be4518 100644 --- a/test/blackbox/run_blackbox_tests/test_cases_hint_address.c +++ b/test/blackbox/run_blackbox_tests/test_cases_hint_address.c @@ -17,6 +17,10 @@ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#ifdef NDEBUG +#undef NDEBUG +#endif + #include "execute_tests.h" #include "test_cases_hint_address.h" #include "../common/containers.h" @@ -61,8 +65,8 @@ void test_case_hint_address_01(void **state) { } /* Test Steps for meshlink_hint_address Test Case # 1 - Valid case */ bool test_steps_hint_address_01(void) { - meshlink_destroy("hintconf1"); - meshlink_destroy("hintconf2"); + assert(meshlink_destroy("hintconf1")); + assert(meshlink_destroy("hintconf2")); meshlink_set_log_cb(NULL, TEST_MESHLINK_LOG_LEVEL, meshlink_callback_logger); // Create meshlink instance for the nodes @@ -119,8 +123,8 @@ bool test_steps_hint_address_01(void) { free(buff); meshlink_close(mesh1); meshlink_close(mesh2); - meshlink_destroy("hintconf1"); - meshlink_destroy("hintconf2"); + assert(meshlink_destroy("hintconf1")); + assert(meshlink_destroy("hintconf2")); return true; }