X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=test%2Fblackbox%2Frun_blackbox_tests%2Ftest_cases_random_port_bindings01.c;h=23118c94c5ad981cc523fff102081cce42e85d16;hb=3febbb4;hp=45d86ed23fe59951b4cc13563c7be453e77214bb;hpb=f1da50294494310d7a299c29af5649d4415bd38a;p=meshlink diff --git a/test/blackbox/run_blackbox_tests/test_cases_random_port_bindings01.c b/test/blackbox/run_blackbox_tests/test_cases_random_port_bindings01.c index 45d86ed2..23118c94 100644 --- a/test/blackbox/run_blackbox_tests/test_cases_random_port_bindings01.c +++ b/test/blackbox/run_blackbox_tests/test_cases_random_port_bindings01.c @@ -143,7 +143,7 @@ void test_case_mesh_random_port_bindings_01(void **state) { */ bool test_steps_mesh_random_port_bindings_01(void) { meshlink_handle_t *relay = NULL; - meshlink_destroy("relay_conf"); + assert(meshlink_destroy("relay_conf")); meshlink_set_log_cb(NULL, MESHLINK_DEBUG, log_message); @@ -171,7 +171,7 @@ bool test_steps_mesh_random_port_bindings_01(void) { ipv6_fd = -1; meshlink_close(relay); - meshlink_destroy("relay_conf"); + assert(meshlink_destroy("relay_conf")); return true; } @@ -186,14 +186,14 @@ void test_case_mesh_random_port_bindings_02(void **state) { Test Steps: 1. Open a node and start the instance. 2. Call meshlink_set_port() with port 10000 - 3. When try bind succeds block the port using devtool_trybind_probe() callback. + 3. When try bind succeeds block the port using devtool_trybind_probe() callback. Expected Result: The meshlink_set_port() API should fail. */ bool test_steps_mesh_random_port_bindings_02(void) { meshlink_handle_t *relay = NULL; - meshlink_destroy("relay_conf"); + assert(meshlink_destroy("relay_conf")); meshlink_set_log_cb(NULL, MESHLINK_DEBUG, log_message); @@ -220,7 +220,7 @@ bool test_steps_mesh_random_port_bindings_02(void) { ipv6_fd = -1; meshlink_close(relay); - meshlink_destroy("relay_conf"); + assert(meshlink_destroy("relay_conf")); return true; } @@ -244,7 +244,7 @@ void test_case_mesh_random_port_bindings_03(void **state) { bool test_steps_mesh_random_port_bindings_03(void) { int port, new_port; meshlink_handle_t *relay = NULL; - meshlink_destroy("relay_conf"); + assert(meshlink_destroy("relay_conf")); meshlink_set_log_cb(NULL, MESHLINK_DEBUG, log_message); @@ -282,7 +282,7 @@ bool test_steps_mesh_random_port_bindings_03(void) { ipv6_fd = -1; meshlink_close(relay); - meshlink_destroy("relay_conf"); + assert(meshlink_destroy("relay_conf")); return true; }