X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fio%2Ftest%2Frun-18-errno.c;h=1bee7682bba94ea26c6b5e885e29bae6e8d50f98;hb=d8ecdc8021b532fe76f001290fcd79c4fb9e1323;hp=f67c0eb02996cfac59b81640b8be3bd875a5537e;hpb=cdffdf5d61f8330cfc3467e73a84876eb3928e9b;p=ccan diff --git a/ccan/io/test/run-18-errno.c b/ccan/io/test/run-18-errno.c index f67c0eb0..1bee7682 100644 --- a/ccan/io/test/run-18-errno.c +++ b/ccan/io/test/run-18-errno.c @@ -6,7 +6,9 @@ #include #include -#ifndef PORT +#ifdef DEBUG_CONN +#define PORT "64018" +#else #define PORT "65018" #endif @@ -27,6 +29,9 @@ static void finish_EBADF(struct io_conn *conn, int *state) static struct io_plan *init_conn(struct io_conn *conn, int *state) { +#ifdef DEBUG_CONN + io_set_debug(conn, true); +#endif if (*state == 0) { (*state)++; errno = 100; @@ -109,7 +114,7 @@ int main(void) exit(0); } freeaddrinfo(addrinfo); - ok1(io_loop() == &state + 1); + ok1(io_loop(NULL, NULL) == &state + 1); ok1(state == 4); io_close_listener(l); ok1(wait(&state));