]> git.ozlabs.org Git - ccan/blobdiff - ccan/io/test/run-14-duplex-both-read-DEBUG.c
io: handle duplex corner cases.
[ccan] / ccan / io / test / run-14-duplex-both-read-DEBUG.c
diff --git a/ccan/io/test/run-14-duplex-both-read-DEBUG.c b/ccan/io/test/run-14-duplex-both-read-DEBUG.c
new file mode 100644 (file)
index 0000000..5c4aae7
--- /dev/null
@@ -0,0 +1,8 @@
+#define DEBUG
+#define PORT "64014"
+#define main real_main
+int real_main(void);
+#include "run-14-duplex-both-read.c"
+#undef main
+static bool always_debug(struct io_conn *conn) { return true; }
+int main(void) { io_debug_conn = always_debug; return real_main(); }