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