]> 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 14129017f26e137507fda00620fdcf85b8c3f5b9..da49558432dbb1972eaa82849ff6364a4479441b 100644 (file)
     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
+
 #include "execute_tests.h"
 #include "test_cases_set_log_cb.h"
 #include "../common/containers.h"
@@ -76,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
 
@@ -100,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;
 }