X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fio%2Ftest%2Frun-09-connect.c;h=124b6a1f70e715f08a3014a8cee72372611ce575;hb=1d415706a6e948fe6dcc3b5dab45812b297f77a1;hp=09b33387590f78808e6a3ef67de08ffc184a7367;hpb=94dd4c2bddd0dc080ad5b85465fa3f45f486967a;p=ccan diff --git a/ccan/io/test/run-09-connect.c b/ccan/io/test/run-09-connect.c index 09b33387..124b6a1f 100644 --- a/ccan/io/test/run-09-connect.c +++ b/ccan/io/test/run-09-connect.c @@ -6,7 +6,9 @@ #include #include -#ifndef PORT +#ifdef DEBUG_CONN +#define PORT "64009" +#else #define PORT "65009" #endif @@ -33,6 +35,9 @@ static struct io_plan *connected(struct io_conn *conn, struct data *d2) 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_close_listener(l);