]> git.meshlink.io Git - meshlink/blobdiff - test/blackbox/run_blackbox_tests/test_optimal_pmtu.c
Always let the initiator send a REQ_KEY once a connection is activated.
[meshlink] / test / blackbox / run_blackbox_tests / test_optimal_pmtu.c
index 51fc808cd509b80c2e3789d95ad5b249fea89d0b..1d7408957ef90a20c052170c54fd4eef3377ac27 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 <stdlib.h>
 #include <stdarg.h>
 #include <setjmp.h>
@@ -72,9 +77,9 @@ static int setup_test(void **state) {
        ping_channel_enable_07 = false;
        memset(node_pmtu, 0, sizeof(node_pmtu));
        set_sync_flag(&test_pmtu_nut_closed, false);
-       meshlink_destroy("nut");
-       meshlink_destroy("peer");
-       meshlink_destroy("relay");
+       assert(meshlink_destroy("nut"));
+       assert(meshlink_destroy("peer"));
+       assert(meshlink_destroy("relay"));
 
        return EXIT_SUCCESS;
 }
@@ -82,9 +87,9 @@ static int setup_test(void **state) {
 static int teardown_test(void **state) {
        (void)state;
 
-       meshlink_destroy("nut");
-       meshlink_destroy("peer");
-       meshlink_destroy("relay");
+       assert(meshlink_destroy("nut"));
+       assert(meshlink_destroy("peer"));
+       assert(meshlink_destroy("relay"));
        netns_destroy_topology(test_pmtu_state);
 
        return EXIT_SUCCESS;