]> git.meshlink.io Git - meshlink/blobdiff - test/blackbox/run_blackbox_tests/test_cases_channel_set_accept_cb.c
Fix __warn_unused_result__, add more of it and fix the resulting warnings.
[meshlink] / test / blackbox / run_blackbox_tests / test_cases_channel_set_accept_cb.c
index 9972b63ac9223c42131867cacbf7e277fe70bc2c..fa345b31f5e1e8891332275e6dcc333b5471af20 100644 (file)
@@ -138,8 +138,8 @@ static void test_case_set_channel_accept_cb_01(void **state) {
 static bool test_steps_set_channel_accept_cb_01(void) {
        /* deleting the confbase if already exists */
        struct timespec timeout = {0};
-       meshlink_destroy("acceptconf1");
-       meshlink_destroy("acceptconf2");
+       assert(meshlink_destroy("acceptconf1"));
+       assert(meshlink_destroy("acceptconf2"));
        meshlink_set_log_cb(NULL, TEST_MESHLINK_LOG_LEVEL, meshlink_callback_logger);
 
        /* Create meshlink instances */
@@ -225,8 +225,8 @@ static bool test_steps_set_channel_accept_cb_01(void) {
        /* closing channel, meshes and destroying confbase */
        meshlink_close(mesh1);
        meshlink_close(mesh2);
-       meshlink_destroy("acceptconf1");
-       meshlink_destroy("acceptconf2");
+       assert(meshlink_destroy("acceptconf1"));
+       assert(meshlink_destroy("acceptconf2"));
 
        return true;
 }