X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fio%2Ftest%2Frun-07-break.c;fp=ccan%2Fio%2Ftest%2Frun-07-break.c;h=d13b0f183609bc8cef34d1992eae0f068358c5be;hp=dd192c4d78e82e9230246708819b513734416411;hb=318f717e34e4735e5397bee24dbbee69205be82b;hpb=94dd4c2bddd0dc080ad5b85465fa3f45f486967a diff --git a/ccan/io/test/run-07-break.c b/ccan/io/test/run-07-break.c index dd192c4d..d13b0f18 100644 --- a/ccan/io/test/run-07-break.c +++ b/ccan/io/test/run-07-break.c @@ -6,7 +6,9 @@ #include #include -#ifndef PORT +#ifdef DEBUG_CONN +#define PORT "64007" +#else #define PORT "65007" #endif @@ -30,6 +32,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++;