]> git.meshlink.io Git - meshlink/blobdiff - test/blackbox/run_blackbox_tests/test_cases_channel_ex.c
Fix __warn_unused_result__, add more of it and fix the resulting warnings.
[meshlink] / test / blackbox / run_blackbox_tests / test_cases_channel_ex.c
index 9f539cffb05b512a815fbaf33794354cb6683345..74c3a3e66b3012afb56e019fee2e7429731d6fff 100644 (file)
@@ -164,7 +164,7 @@ static bool test_steps_channel_ex_01(void) {
        assert_int_equal(ret, true);
 
        meshlink_close(mesh_handle);
-       meshlink_destroy("channelexconf");
+       assert(meshlink_destroy("channelexconf"));
 
        return true;
 }
@@ -217,7 +217,7 @@ static bool test_steps_channel_ex_02(void) {
        assert_int_equal(ret, true);
 
        meshlink_close(mesh_handle);
-       meshlink_destroy("channelexconf");
+       assert(meshlink_destroy("channelexconf"));
        return true;
 }
 
@@ -269,7 +269,7 @@ static bool test_steps_channel_ex_03(void) {
        assert_int_equal(ret, true);
 
        meshlink_close(mesh_handle);
-       meshlink_destroy("channelexconf");
+       assert(meshlink_destroy("channelexconf"));
        return true;
 }
 
@@ -321,7 +321,7 @@ static bool test_steps_channel_ex_04(void) {
        assert_int_equal(ret, true);
 
        meshlink_close(mesh_handle);
-       meshlink_destroy("channelexconf");
+       assert(meshlink_destroy("channelexconf"));
        return true;
 }
 
@@ -361,7 +361,7 @@ static bool test_steps_channel_ex_05(void) {
        assert(channel == NULL);
 
        meshlink_close(mesh_handle);
-       meshlink_destroy("channelexconf");
+       assert(meshlink_destroy("channelexconf"));
        return true;
 }
 
@@ -399,7 +399,7 @@ static bool test_steps_channel_ex_06(void) {
        assert_int_equal(channel, NULL);
 
        meshlink_close(mesh_handle);
-       meshlink_destroy("channelexconf");
+       assert(meshlink_destroy("channelexconf"));
        return true;
 }