X-Git-Url: http://git.meshlink.io/?p=meshlink;a=blobdiff_plain;f=test%2Fblackbox%2Frun_blackbox_tests%2Ftest_cases_set_connection_try_cb.c;h=6eac8577009e864a1480b985b8f245a2422ab82d;hp=45e75542a80165065e3b19c203475a8c1646ac6b;hb=fe5563f92021618b4a8b41e412c73d8364fcaf6e;hpb=6c897377f68fc23ca9a8b23a6ca204517998b2e9 diff --git a/test/blackbox/run_blackbox_tests/test_cases_set_connection_try_cb.c b/test/blackbox/run_blackbox_tests/test_cases_set_connection_try_cb.c index 45e75542..6eac8577 100644 --- a/test/blackbox/run_blackbox_tests/test_cases_set_connection_try_cb.c +++ b/test/blackbox/run_blackbox_tests/test_cases_set_connection_try_cb.c @@ -75,8 +75,8 @@ static void test_case_set_connection_try_cb_01(void **state) { After closing bar node it should invoke 3 connection try callbacks in span of about 30 seconds. */ static bool test_set_connection_try_cb_01(void) { - meshlink_destroy("meshlink_conf.1"); - meshlink_destroy("meshlink_conf.2"); + assert(meshlink_destroy("meshlink_conf.1")); + assert(meshlink_destroy("meshlink_conf.2")); // Opening foo and bar nodes meshlink_handle_t *mesh1 = meshlink_open("meshlink_conf.1", "foo", "test", DEV_CLASS_STATIONARY); @@ -95,8 +95,8 @@ static bool test_set_connection_try_cb_01(void) { assert(exp1 != NULL); char *exp2 = meshlink_export(mesh2); assert(exp2 != NULL); - meshlink_import(mesh1, exp2); - meshlink_import(mesh2, exp1); + assert(meshlink_import(mesh1, exp2)); + assert(meshlink_import(mesh2, exp1)); free(exp1); free(exp2); @@ -129,8 +129,8 @@ static bool test_set_connection_try_cb_01(void) { assert_in_range(attempt_time_stop - attempt_time_start, 25, 45); // Cleanup - meshlink_destroy("meshlink_conf.1"); - meshlink_destroy("meshlink_conf.2"); + assert(meshlink_destroy("meshlink_conf.1")); + assert(meshlink_destroy("meshlink_conf.2")); return true; }