]> git.ozlabs.org Git - ccan/blobdiff - ccan/io/test/run-01-start-finish-DEBUG.c
ccan/io: go linear for debugging.
[ccan] / ccan / io / test / run-01-start-finish-DEBUG.c
diff --git a/ccan/io/test/run-01-start-finish-DEBUG.c b/ccan/io/test/run-01-start-finish-DEBUG.c
new file mode 100644 (file)
index 0000000..48f0f3e
--- /dev/null
@@ -0,0 +1,8 @@
+#define DEBUG
+#define PORT "64001"
+#define main real_main
+int real_main(void);
+#include "run-01-start-finish.c"
+#undef main
+static bool always_debug(struct io_conn *conn) { return true; }
+int main(void) { io_debug = always_debug; return real_main(); }