]> git.meshlink.io Git - meshlink/blobdiff - test/blackbox/run_blackbox_tests/test_cases_random_port_bindings01.c
Fix __warn_unused_result__, add more of it and fix the resulting warnings.
[meshlink] / test / blackbox / run_blackbox_tests / test_cases_random_port_bindings01.c
index 45d86ed23fe59951b4cc13563c7be453e77214bb..5cce98c0b4e805b296b8b70132b331efe64d9081 100644 (file)
@@ -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;
 }
@@ -193,7 +193,7 @@ void test_case_mesh_random_port_bindings_02(void **state) {
 */
 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;
 }