]> git.meshlink.io Git - meshlink/blobdiff - test/channels-no-partial.c
Use a separate lockfile to lock the configuration directory.
[meshlink] / test / channels-no-partial.c
index 8216a5568bb9260f4b9e862fba3478732f82983b..bcf8cec1be8946dc2408a4651b795f4bf2b7f1ad 100644 (file)
@@ -1,3 +1,7 @@
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
+
 #include <assert.h>
 #include <stdio.h>
 #include <unistd.h>
@@ -22,6 +26,8 @@ int main(int argc, char *argv[]) {
        (void)argc;
        (void)argv;
 
+       meshlink_set_log_cb(NULL, MESHLINK_DEBUG, log_cb);
+
        // Start two new meshlink instance.
 
        meshlink_handle_t *mesh_a;
@@ -69,7 +75,5 @@ int main(int argc, char *argv[]) {
 
        // Clean up.
 
-       close_meshlink_pair(mesh_a, mesh_b, "channels_no_partial");
-
-       return 0;
+       close_meshlink_pair(mesh_a, mesh_b);
 }