X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=test%2Fblackbox%2Frun_blackbox_tests%2Ftest_cases_channel_blacklist.c;h=568a475b0682264da910deb3cbc10c695e3461f6;hb=fe5563f92021618b4a8b41e412c73d8364fcaf6e;hp=05594bce7e9df41a7a3a71e5e6955adfc5a5c980;hpb=cdb3dada645394bb1e0d0bf7816291fbd9a2a4a0;p=meshlink diff --git a/test/blackbox/run_blackbox_tests/test_cases_channel_blacklist.c b/test/blackbox/run_blackbox_tests/test_cases_channel_blacklist.c index 05594bce..568a475b 100644 --- a/test/blackbox/run_blackbox_tests/test_cases_channel_blacklist.c +++ b/test/blackbox/run_blackbox_tests/test_cases_channel_blacklist.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 #include #include @@ -61,9 +66,9 @@ static int setup_test(void **state) { netns_create_topology(test_channel_disconnection_state); fprintf(stderr, "\nCreated topology\n"); - meshlink_destroy("nut"); - meshlink_destroy("peer"); - meshlink_destroy("relay"); + assert(meshlink_destroy("nut")); + assert(meshlink_destroy("peer")); + assert(meshlink_destroy("relay")); channel_discon_case_ping = false; channel_discon_network_failure_01 = false; channel_discon_network_failure_02 = false; @@ -76,9 +81,9 @@ static int setup_test(void **state) { static int teardown_test(void **state) { (void)state; - meshlink_destroy("nut"); - meshlink_destroy("peer"); - meshlink_destroy("relay"); + assert(meshlink_destroy("nut")); + assert(meshlink_destroy("peer")); + assert(meshlink_destroy("relay")); netns_destroy_topology(test_channel_disconnection_state); return EXIT_SUCCESS;