X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=test%2Fblackbox%2Frun_blackbox_tests%2Ftest_cases_export.c;h=0281f0b5a95b48f0bac0f7509b58a10bbee37284;hb=ee00033298d347b3da13dfca0d18db1c897953e1;hp=75e84ec533c6c98d03a7a55a6c42d52276dcce7a;hpb=dc68da94af8fca91748579c84ef5ed798db7efab;p=meshlink diff --git a/test/blackbox/run_blackbox_tests/test_cases_export.c b/test/blackbox/run_blackbox_tests/test_cases_export.c index 75e84ec5..0281f0b5 100644 --- a/test/blackbox/run_blackbox_tests/test_cases_export.c +++ b/test/blackbox/run_blackbox_tests/test_cases_export.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_export.h" #include "../common/containers.h" @@ -60,7 +65,7 @@ static void test_case_export_01(void **state) { API returns a NULL terminated string containing meta data of NUT. */ static bool test_export_01(void) { - meshlink_destroy("exportconf"); + assert(meshlink_destroy("exportconf")); meshlink_set_log_cb(NULL, TEST_MESHLINK_LOG_LEVEL, meshlink_callback_logger); /* Create meshlink instance */ @@ -72,7 +77,7 @@ static bool test_export_01(void) { assert_int_not_equal(expo, NULL); meshlink_close(mesh_handle); - meshlink_destroy("exportconf"); + assert(meshlink_destroy("exportconf")); return true; }