X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fio%2Ftest%2Frun-02-read-DEBUG.c;fp=ccan%2Fio%2Ftest%2Frun-02-read-DEBUG.c;h=d48260cfc5686cf0ed282df6cddd658f170cb231;hb=34776d3e9ad7de78778306a2d09c2c95df06c902;hp=0000000000000000000000000000000000000000;hpb=cf86c1e30648c9b482b92444c39ea6ea0ff936a8;p=ccan diff --git a/ccan/io/test/run-02-read-DEBUG.c b/ccan/io/test/run-02-read-DEBUG.c new file mode 100644 index 00000000..d48260cf --- /dev/null +++ b/ccan/io/test/run-02-read-DEBUG.c @@ -0,0 +1,8 @@ +#define DEBUG +#define PORT "64002" +#define main real_main +int real_main(void); +#include "run-02-read.c" +#undef main +static bool always_debug(struct io_conn *conn) { return true; } +int main(void) { io_debug = always_debug; return real_main(); }