X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=test%2Fblackbox%2Frun_blackbox_tests%2Ftest_cases_get_all_nodes.c;h=6fd409bb27e82d009147bbdaf841655d2d668dab;hb=ee00033298d347b3da13dfca0d18db1c897953e1;hp=56a31398b5993dc9b0220281eb2521cf6be8f664;hpb=cdb3dada645394bb1e0d0bf7816291fbd9a2a4a0;p=meshlink diff --git a/test/blackbox/run_blackbox_tests/test_cases_get_all_nodes.c b/test/blackbox/run_blackbox_tests/test_cases_get_all_nodes.c index 56a31398..6fd409bb 100644 --- a/test/blackbox/run_blackbox_tests/test_cases_get_all_nodes.c +++ b/test/blackbox/run_blackbox_tests/test_cases_get_all_nodes.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.h" #include "../common/containers.h" @@ -71,8 +75,8 @@ static void test_case_get_all_nodes_01(void **state) { Obtaining list of nodes in the mesh at the given instance */ static bool test_get_all_nodes_01(void) { - meshlink_destroy("getnodeconf1"); - meshlink_destroy("getnodeconf2"); + assert(meshlink_destroy("getnodeconf1")); + assert(meshlink_destroy("getnodeconf2")); meshlink_set_log_cb(NULL, TEST_MESHLINK_LOG_LEVEL, meshlink_callback_logger); /* Create meshlink instance for NUT */ @@ -104,8 +108,8 @@ static bool test_get_all_nodes_01(void) { meshlink_close(mesh1); meshlink_close(mesh2); - meshlink_destroy("getnodeconf1"); - meshlink_destroy("getnodeconf2"); + assert(meshlink_destroy("getnodeconf1")); + assert(meshlink_destroy("getnodeconf2")); return true; } @@ -158,7 +162,7 @@ static bool test_get_all_nodes_03(void) { assert_int_equal(nodes, NULL); meshlink_close(mesh_handle); - meshlink_destroy("getallnodesconf"); + assert(meshlink_destroy("getallnodesconf")); return true; }