X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fio%2Ftest%2Frun-04-writepartial.c;h=d3f7043f7b2764ba7bc931defdbaf7709eaa83f7;hp=011bbc894553b58699559655f6c37eeb7b6c2d1f;hb=318f717e34e4735e5397bee24dbbee69205be82b;hpb=94dd4c2bddd0dc080ad5b85465fa3f45f486967a diff --git a/ccan/io/test/run-04-writepartial.c b/ccan/io/test/run-04-writepartial.c index 011bbc89..d3f7043f 100644 --- a/ccan/io/test/run-04-writepartial.c +++ b/ccan/io/test/run-04-writepartial.c @@ -6,7 +6,9 @@ #include #include -#ifndef PORT +#ifdef DEBUG_CONN +#define PORT "64004" +#else #define PORT "65004" #endif @@ -25,6 +27,9 @@ static void finish_ok(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);