]> git.meshlink.io Git - meshlink/blobdiff - test/blackbox/run_blackbox_tests/test_cases_set_port.c
Fix __warn_unused_result__, add more of it and fix the resulting warnings.
[meshlink] / test / blackbox / run_blackbox_tests / test_cases_set_port.c
index b01bc6d87a95945a48867251e430c84b8d4c30b7..e514e57f11328d4cf82bc0b96768a47547c40703 100644 (file)
     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
+
 #include "execute_tests.h"
 #include "test_cases_destroy.h"
 #include "../common/containers.h"
@@ -91,7 +95,7 @@ static bool test_set_port_01(void) {
        // Clean up
 
        meshlink_close(mesh_handle);
-       meshlink_destroy("setportconf");
+       assert(meshlink_destroy("setportconf"));
        return true;
 }
 
@@ -149,7 +153,7 @@ static bool test_set_port_03(void) {
        // Clean up
 
        meshlink_close(mesh_handle);
-       meshlink_destroy("getportconf");
+       assert(meshlink_destroy("getportconf"));
 
        return false;
 }