]> git.meshlink.io Git - meshlink/blobdiff - test/blackbox/run_blackbox_tests/test_cases_get_self.c
Fix __warn_unused_result__, add more of it and fix the resulting warnings.
[meshlink] / test / blackbox / run_blackbox_tests / test_cases_get_self.c
index 53a083350ba2e8cafca8f60eaa97a7166a9efc07..3368a42fa554b229087d6b40d892cd07cba4900f 100644 (file)
     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
+
 #include "execute_tests.h"
 #include "test_cases_get_self.h"
 #include "../common/containers.h"
@@ -71,7 +75,7 @@ static bool test_steps_mesh_get_self_01(void) {
        }
 
        meshlink_close(mesh);
-       meshlink_destroy("self_conf");
+       assert(meshlink_destroy("self_conf"));
        return true;
 
 }