]> git.meshlink.io Git - meshlink/blobdiff - test/blackbox/run_blackbox_tests/test_cases_send.c
Fix __warn_unused_result__, add more of it and fix the resulting warnings.
[meshlink] / test / blackbox / run_blackbox_tests / test_cases_send.c
index 6bb39da3cd24e57abe4c5072b3e8e135415d84e0..1cf47fce436faf81fbd87c87b4bfee87380333df 100644 (file)
     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
+
 #include "execute_tests.h"
 #include "test_cases_send.h"
 #include "../common/containers.h"
@@ -95,7 +99,7 @@ static bool test_steps_mesh_send_01(void) {
        assert_int_equal(receive_data, true);
 
        meshlink_close(mesh);
-       meshlink_destroy("send_conf");
+       assert(meshlink_destroy("send_conf"));
        return result;
 }
 
@@ -126,7 +130,7 @@ static bool test_steps_mesh_send_02(void) {
        assert_int_equal(ret, false);
 
        meshlink_close(mesh);
-       meshlink_destroy("send_conf");
+       assert(meshlink_destroy("send_conf"));
        return true;
 }
 
@@ -155,7 +159,7 @@ static bool test_steps_mesh_send_03(void) {
        assert_int_equal(ret, false);
 
        meshlink_close(mesh);
-       meshlink_destroy("send_conf");
+       assert(meshlink_destroy("send_conf"));
        return true;
 }