X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=test%2Fblackbox%2Frun_blackbox_tests%2Ftest_cases_channel_set_accept_cb.c;h=fa345b31f5e1e8891332275e6dcc333b5471af20;hb=3febbb4;hp=c8e4cbcce9fbaa1a21b2bc7da5c344a77bc88fe4;hpb=cdb3dada645394bb1e0d0bf7816291fbd9a2a4a0;p=meshlink diff --git a/test/blackbox/run_blackbox_tests/test_cases_channel_set_accept_cb.c b/test/blackbox/run_blackbox_tests/test_cases_channel_set_accept_cb.c index c8e4cbcc..fa345b31 100644 --- a/test/blackbox/run_blackbox_tests/test_cases_channel_set_accept_cb.c +++ b/test/blackbox/run_blackbox_tests/test_cases_channel_set_accept_cb.c @@ -16,6 +16,11 @@ with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ + +#ifdef NDEBUG +#undef NDEBUG +#endif + #include "execute_tests.h" #include "../common/containers.h" #include "../common/test_step.h" @@ -133,8 +138,8 @@ static void test_case_set_channel_accept_cb_01(void **state) { static bool test_steps_set_channel_accept_cb_01(void) { /* deleting the confbase if already exists */ struct timespec timeout = {0}; - meshlink_destroy("acceptconf1"); - meshlink_destroy("acceptconf2"); + assert(meshlink_destroy("acceptconf1")); + assert(meshlink_destroy("acceptconf2")); meshlink_set_log_cb(NULL, TEST_MESHLINK_LOG_LEVEL, meshlink_callback_logger); /* Create meshlink instances */ @@ -220,8 +225,8 @@ static bool test_steps_set_channel_accept_cb_01(void) { /* closing channel, meshes and destroying confbase */ meshlink_close(mesh1); meshlink_close(mesh2); - meshlink_destroy("acceptconf1"); - meshlink_destroy("acceptconf2"); + assert(meshlink_destroy("acceptconf1")); + assert(meshlink_destroy("acceptconf2")); return true; }