X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=test%2Fblackbox%2Frun_blackbox_tests%2Ftest_cases_channel_ex.c;h=74c3a3e66b3012afb56e019fee2e7429731d6fff;hb=f342cb44b25cd61eed17897575015be4aae1dd17;hp=dc626c891183681aada152fbd01e11437003ff98;hpb=cdb3dada645394bb1e0d0bf7816291fbd9a2a4a0;p=meshlink diff --git a/test/blackbox/run_blackbox_tests/test_cases_channel_ex.c b/test/blackbox/run_blackbox_tests/test_cases_channel_ex.c index dc626c89..74c3a3e6 100644 --- a/test/blackbox/run_blackbox_tests/test_cases_channel_ex.c +++ b/test/blackbox/run_blackbox_tests/test_cases_channel_ex.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 "test_cases_channel_ex.h" #include "../common/containers.h" @@ -159,7 +164,7 @@ static bool test_steps_channel_ex_01(void) { assert_int_equal(ret, true); meshlink_close(mesh_handle); - meshlink_destroy("channelexconf"); + assert(meshlink_destroy("channelexconf")); return true; } @@ -212,7 +217,7 @@ static bool test_steps_channel_ex_02(void) { assert_int_equal(ret, true); meshlink_close(mesh_handle); - meshlink_destroy("channelexconf"); + assert(meshlink_destroy("channelexconf")); return true; } @@ -264,7 +269,7 @@ static bool test_steps_channel_ex_03(void) { assert_int_equal(ret, true); meshlink_close(mesh_handle); - meshlink_destroy("channelexconf"); + assert(meshlink_destroy("channelexconf")); return true; } @@ -316,7 +321,7 @@ static bool test_steps_channel_ex_04(void) { assert_int_equal(ret, true); meshlink_close(mesh_handle); - meshlink_destroy("channelexconf"); + assert(meshlink_destroy("channelexconf")); return true; } @@ -356,7 +361,7 @@ static bool test_steps_channel_ex_05(void) { assert(channel == NULL); meshlink_close(mesh_handle); - meshlink_destroy("channelexconf"); + assert(meshlink_destroy("channelexconf")); return true; } @@ -394,7 +399,7 @@ static bool test_steps_channel_ex_06(void) { assert_int_equal(channel, NULL); meshlink_close(mesh_handle); - meshlink_destroy("channelexconf"); + assert(meshlink_destroy("channelexconf")); return true; }