]> git.meshlink.io Git - meshlink/blobdiff - test/blackbox/run_blackbox_tests/test_cases_set_log_cb.c
Fix __warn_unused_result__, add more of it and fix the resulting warnings.
[meshlink] / test / blackbox / run_blackbox_tests / test_cases_set_log_cb.c
index 9a287023fe98c0359b33dcd56fd81453551b44d8..da49558432dbb1972eaa82849ff6364a4479441b 100644 (file)
@@ -80,7 +80,7 @@ static void test_case_set_log_cb_01(void **state) {
     log callback should be invoked when NUT joins with relay.
 */
 static bool test_set_log_cb_01(void) {
-       meshlink_destroy("logconf");
+       assert(meshlink_destroy("logconf"));
 
        // Create meshlink instance for NUT
 
@@ -104,7 +104,7 @@ static bool test_set_log_cb_01(void) {
        // closing meshes and destroying confbase
 
        meshlink_close(mesh);
-       meshlink_destroy("logconf");
+       assert(meshlink_destroy("logconf"));
 
        return true;
 }