]> git.meshlink.io Git - meshlink/blobdiff - test/blackbox/run_blackbox_tests/test_cases_channel_get_flags.c
Fix __warn_unused_result__, add more of it and fix the resulting warnings.
[meshlink] / test / blackbox / run_blackbox_tests / test_cases_channel_get_flags.c
index 9ae6dfdfb358f403f081f49102938dc50ffddd7b..5bb268396027beabc0fa7037d0a3b057eec037a8 100644 (file)
@@ -96,7 +96,7 @@ static bool test_steps_channel_get_flags_01(void) {
        assert_int_equal(flags, MESHLINK_CHANNEL_TCP);
 
        meshlink_close(mesh_handle);
-       meshlink_destroy("getflagsconf");
+       assert(meshlink_destroy("getflagsconf"));
 
        return true;
 }
@@ -145,7 +145,7 @@ static bool test_steps_channel_get_flags_02(void) {
        assert_int_equal(meshlink_errno, MESHLINK_EINVAL);
 
        meshlink_close(mesh_handle);
-       meshlink_destroy("getflagsconf");
+       assert(meshlink_destroy("getflagsconf"));
        return true;
 }
 
@@ -181,7 +181,7 @@ static bool test_steps_channel_get_flags_03(void) {
        assert_int_equal(meshlink_errno, MESHLINK_EINVAL);
 
        meshlink_close(mesh_handle);
-       meshlink_destroy("getflagsconf");
+       assert(meshlink_destroy("getflagsconf"));
        return true;
 }