]> 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 f83c39f5d28f018e3cbef315756b00ad1efbf419..5bb268396027beabc0fa7037d0a3b057eec037a8 100644 (file)
     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
+
 #include "execute_tests.h"
 #include "test_cases_channel_get_flags.h"
 #include "../common/containers.h"
@@ -92,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;
 }
@@ -141,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;
 }
 
@@ -177,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;
 }