]> git.meshlink.io Git - meshlink/blobdiff - test/channels-no-partial.c
Allow meshlink_open() to be called with a NULL name.
[meshlink] / test / channels-no-partial.c
index d8a8bf1eb5262d1b3af29a63e6b3f677870b7294..c765456abff08e3de1b9c8a5151182e59c6ddd4d 100644 (file)
@@ -1,3 +1,7 @@
+#ifdef NDEBUG
+#undef NDEBUG
+#endif
+
 #include <assert.h>
 #include <stdio.h>
 #include <unistd.h>
@@ -64,7 +68,7 @@ int main(int argc, char *argv[]) {
 
        // Restart a to ensure it gets to flush the channel send queue.
 
-       meshlink_start(mesh_a);
+       assert(meshlink_start(mesh_a));
 
        assert_after(!meshlink_channel_get_sendq(mesh_a, channel), 30);
        assert(meshlink_channel_send(mesh_a, channel, buf, 512) == 512);