]> git.meshlink.io Git - meshlink/blobdiff - test/blackbox/run_blackbox_tests/test_cases_get_fingerprint.c
Fix __warn_unused_result__, add more of it and fix the resulting warnings.
[meshlink] / test / blackbox / run_blackbox_tests / test_cases_get_fingerprint.c
index 1315ec5a20ab87ce4df452f188d0927ef82ac0a1..3435f6eeaa5bf7ad2b52e7a4ad9eb4169df93641 100644 (file)
     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
+
 #include "execute_tests.h"
 #include "test_cases.h"
 #include "../common/containers.h"
@@ -81,7 +85,7 @@ static bool test_get_fingerprint_cb_01(void) {
        assert_int_not_equal(fp, NULL);
 
        meshlink_close(mesh_handle);
-       meshlink_destroy("getfingerprintconf");
+       assert(meshlink_destroy("getfingerprintconf"));
 
        return true;
 }
@@ -122,7 +126,7 @@ static bool test_get_fingerprint_cb_02(void) {
        assert_int_equal(fp, NULL);
 
        meshlink_close(mesh_handle);
-       meshlink_destroy("getfingerprintconf");
+       assert(meshlink_destroy("getfingerprintconf"));
 
        return true;
 }
@@ -154,7 +158,7 @@ static bool test_get_fingerprint_cb_03(void) {
        assert_int_equal(fp, NULL);
 
        meshlink_close(mesh_handle);
-       meshlink_destroy("getfingerprintconf");
+       assert(meshlink_destroy("getfingerprintconf"));
 
        return true;
 }