X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fio%2Ftest%2Frun-19-always.c;h=7a015f28b21690ee55121a2dd3f76bbf25fca8f7;hp=63eb34e61fb4ec443be0c88977acaea55402f52e;hb=318f717e34e4735e5397bee24dbbee69205be82b;hpb=94dd4c2bddd0dc080ad5b85465fa3f45f486967a diff --git a/ccan/io/test/run-19-always.c b/ccan/io/test/run-19-always.c index 63eb34e6..7a015f28 100644 --- a/ccan/io/test/run-19-always.c +++ b/ccan/io/test/run-19-always.c @@ -6,7 +6,9 @@ #include #include -#ifndef PORT +#ifdef DEBUG_CONN +#define PORT "64019" +#else #define PORT "65019" #endif @@ -30,6 +32,9 @@ static struct io_plan *write_buf(struct io_conn *conn, struct data *d) static struct io_plan *init_conn(struct io_conn *conn, struct data *d) { +#ifdef DEBUG_CONN + io_set_debug(conn, true); +#endif ok1(d->state == 0); d->state++; io_set_finish(conn, finish_ok, d);