]> git.meshlink.io Git - meshlink/blobdiff - test/blackbox/run_blackbox_tests/test_cases_rec_cb.c
Fix __warn_unused_result__, add more of it and fix the resulting warnings.
[meshlink] / test / blackbox / run_blackbox_tests / test_cases_rec_cb.c
index e94f9bfa637aed21ae2d51a478fff191e1263865..044234b3acb0bfdc06aed36ee8aa9d6f1ed271ec 100644 (file)
@@ -121,7 +121,7 @@ static bool test_set_rec_cb_01(void) {
        pthread_mutex_unlock(&lock);
 
        meshlink_close(mesh_handle);
-       meshlink_destroy("set_receive_cb_conf");
+       assert(meshlink_destroy("set_receive_cb_conf"));
        return true;
 }
 
@@ -189,7 +189,7 @@ static bool test_set_rec_cb_03(void) {
        pthread_mutex_unlock(&lock);
 
        meshlink_close(mesh_handle);
-       meshlink_destroy("set_receive_cb_conf");
+       assert(meshlink_destroy("set_receive_cb_conf"));
        return true;
 }