]> git.meshlink.io Git - meshlink/blobdiff - test/blackbox/run_blackbox_tests/test_cases_channel_blacklist.c
Fix __warn_unused_result__, add more of it and fix the resulting warnings.
[meshlink] / test / blackbox / run_blackbox_tests / test_cases_channel_blacklist.c
index 333f3a990a79be3de8dab0e3a9b37e092efe1b16..568a475b0682264da910deb3cbc10c695e3461f6 100644 (file)
@@ -66,9 +66,9 @@ static int setup_test(void **state) {
        netns_create_topology(test_channel_disconnection_state);
        fprintf(stderr, "\nCreated topology\n");
 
-       meshlink_destroy("nut");
-       meshlink_destroy("peer");
-       meshlink_destroy("relay");
+       assert(meshlink_destroy("nut"));
+       assert(meshlink_destroy("peer"));
+       assert(meshlink_destroy("relay"));
        channel_discon_case_ping = false;
        channel_discon_network_failure_01 = false;
        channel_discon_network_failure_02 = false;
@@ -81,9 +81,9 @@ static int setup_test(void **state) {
 static int teardown_test(void **state) {
        (void)state;
 
-       meshlink_destroy("nut");
-       meshlink_destroy("peer");
-       meshlink_destroy("relay");
+       assert(meshlink_destroy("nut"));
+       assert(meshlink_destroy("peer"));
+       assert(meshlink_destroy("relay"));
        netns_destroy_topology(test_channel_disconnection_state);
 
        return EXIT_SUCCESS;