]> git.meshlink.io Git - meshlink/blobdiff - test/blackbox/run_blackbox_tests/test_cases_hint_address.c
Fix __warn_unused_result__, add more of it and fix the resulting warnings.
[meshlink] / test / blackbox / run_blackbox_tests / test_cases_hint_address.c
index aacbbecdbd01acce5536c455e1f9a7b22a0c3165..61be45188595ff63b9e51ad29ce33239c626ab9e 100644 (file)
     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
+
 #include "execute_tests.h"
 #include "test_cases_hint_address.h"
 #include "../common/containers.h"
@@ -61,8 +65,8 @@ void test_case_hint_address_01(void **state) {
 }
 /* Test Steps for meshlink_hint_address Test Case # 1 - Valid case */
 bool test_steps_hint_address_01(void) {
-       meshlink_destroy("hintconf1");
-       meshlink_destroy("hintconf2");
+       assert(meshlink_destroy("hintconf1"));
+       assert(meshlink_destroy("hintconf2"));
        meshlink_set_log_cb(NULL, TEST_MESHLINK_LOG_LEVEL, meshlink_callback_logger);
 
        // Create meshlink instance for the nodes
@@ -119,8 +123,8 @@ bool test_steps_hint_address_01(void) {
        free(buff);
        meshlink_close(mesh1);
        meshlink_close(mesh2);
-       meshlink_destroy("hintconf1");
-       meshlink_destroy("hintconf2");
+       assert(meshlink_destroy("hintconf1"));
+       assert(meshlink_destroy("hintconf2"));
 
        return true;
 }