]> git.meshlink.io Git - meshlink/blobdiff - test/import-export.c
Ensure all addresses in the invitation URL are also in the invitation file.
[meshlink] / test / import-export.c
index b3d52da674599bbec7da4122a6770e800018ec41..8bc41c1b3c06fad7ac11b7fba4956f41abfe5dac 100644 (file)
@@ -1,3 +1,7 @@
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
+
 #include <stdio.h>
 #include <unistd.h>
 #include <stdlib.h>
@@ -39,8 +43,8 @@ int main() {
 
        // Import and export both side's data
 
-       meshlink_add_address(mesh1, "localhost");
-       meshlink_add_address(mesh2, "localhost");
+       assert(meshlink_add_address(mesh1, "localhost"));
+       assert(meshlink_add_address(mesh2, "localhost"));
 
        char *data = meshlink_export(mesh1);
        assert(data);