]> git.meshlink.io Git - meshlink/blobdiff - test/blackbox/run_blackbox_tests/test_cases_export.c
Fix __warn_unused_result__, add more of it and fix the resulting warnings.
[meshlink] / test / blackbox / run_blackbox_tests / test_cases_export.c
index 75e84ec533c6c98d03a7a55a6c42d52276dcce7a..0281f0b5a95b48f0bac0f7509b58a10bbee37284 100644 (file)
     with this program; if not, write to the Free Software Foundation, Inc.,
     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
+
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
+
 #include "execute_tests.h"
 #include "test_cases_export.h"
 #include "../common/containers.h"
@@ -60,7 +65,7 @@ static void test_case_export_01(void **state) {
     API returns a NULL terminated string containing meta data of NUT.
 */
 static bool test_export_01(void) {
-       meshlink_destroy("exportconf");
+       assert(meshlink_destroy("exportconf"));
        meshlink_set_log_cb(NULL, TEST_MESHLINK_LOG_LEVEL, meshlink_callback_logger);
 
        /* Create meshlink instance */
@@ -72,7 +77,7 @@ static bool test_export_01(void) {
        assert_int_not_equal(expo, NULL);
 
        meshlink_close(mesh_handle);
-       meshlink_destroy("exportconf");
+       assert(meshlink_destroy("exportconf"));
 
        return true;
 }