]> 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 db94a0024ddf4c604694885255858338c52827ec..0281f0b5a95b48f0bac0f7509b58a10bbee37284 100644 (file)
@@ -65,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 */
@@ -77,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;
 }