]> git.meshlink.io Git - meshlink/blobdiff - test/blackbox/run_blackbox_tests/test_cases_add_ex_addr.c
Fix __warn_unused_result__, add more of it and fix the resulting warnings.
[meshlink] / test / blackbox / run_blackbox_tests / test_cases_add_ex_addr.c
index c78690952045f79cddb3223277a593d7c9c7f97a..894d3d3f36ce0a5243ab65f5a09079f60b46b496 100644 (file)
@@ -65,7 +65,7 @@ void test_case_mesh_add_ex_address_01(void **state) {
     meshlink_add_external_address API adds the new address given to it's confbase
 */
 bool test_steps_mesh_add_ex_address_01(void) {
-       meshlink_destroy("addex_conf.1");
+       assert(meshlink_destroy("addex_conf.1"));
 
        // Create node instance
        meshlink_handle_t *mesh = meshlink_open("addex_conf.1", "foo", "test", DEV_CLASS_STATIONARY);
@@ -94,7 +94,7 @@ bool test_steps_mesh_add_ex_address_01(void) {
        assert_int_equal(found, true);
 
        meshlink_close(mesh);
-       meshlink_destroy("addex_conf.1");
+       assert(meshlink_destroy("addex_conf.1"));
        return true;
 }