]> git.meshlink.io Git - meshlink/blobdiff - test/blackbox/run_blackbox_tests/test_cases_channel_set_accept_cb.c
Renew SPTPS keys every hour.
[meshlink] / test / blackbox / run_blackbox_tests / test_cases_channel_set_accept_cb.c
index c8e4cbcce9fbaa1a21b2bc7da5c344a77bc88fe4..fa345b31f5e1e8891332275e6dcc333b5471af20 100644 (file)
     with this program; if not, write to the Free Software Foundation, Inc.,
     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
+
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
+
 #include "execute_tests.h"
 #include "../common/containers.h"
 #include "../common/test_step.h"
@@ -133,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 */
@@ -220,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;
 }