X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=test%2Fblackbox%2Frun_blackbox_tests%2Ftest_cases_set_log_cb.c;h=da49558432dbb1972eaa82849ff6364a4479441b;hb=ee00033298d347b3da13dfca0d18db1c897953e1;hp=14129017f26e137507fda00620fdcf85b8c3f5b9;hpb=cdb3dada645394bb1e0d0bf7816291fbd9a2a4a0;p=meshlink diff --git a/test/blackbox/run_blackbox_tests/test_cases_set_log_cb.c b/test/blackbox/run_blackbox_tests/test_cases_set_log_cb.c index 14129017..da495584 100644 --- a/test/blackbox/run_blackbox_tests/test_cases_set_log_cb.c +++ b/test/blackbox/run_blackbox_tests/test_cases_set_log_cb.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_set_log_cb.h" #include "../common/containers.h" @@ -76,7 +80,7 @@ static void test_case_set_log_cb_01(void **state) { log callback should be invoked when NUT joins with relay. */ static bool test_set_log_cb_01(void) { - meshlink_destroy("logconf"); + assert(meshlink_destroy("logconf")); // Create meshlink instance for NUT @@ -100,7 +104,7 @@ static bool test_set_log_cb_01(void) { // closing meshes and destroying confbase meshlink_close(mesh); - meshlink_destroy("logconf"); + assert(meshlink_destroy("logconf")); return true; }