X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fio%2Ftest%2Frun-06-idle.c;h=57d5e20c13ec33223300f409f35953044641abd2;hb=318f717e34e4735e5397bee24dbbee69205be82b;hp=d01cb31fff4da1393e6d4071bc5b059ad7ff0326;hpb=6109a0a6140acbbfe5e998f7d7ea1215f035cb90;p=ccan diff --git a/ccan/io/test/run-06-idle.c b/ccan/io/test/run-06-idle.c index d01cb31f..57d5e20c 100644 --- a/ccan/io/test/run-06-idle.c +++ b/ccan/io/test/run-06-idle.c @@ -9,7 +9,9 @@ #include #include -#ifndef PORT +#ifdef DEBUG_CONN +#define PORT "64006" +#else #define PORT "65006" #endif @@ -143,7 +145,7 @@ int main(void) } freeaddrinfo(addrinfo); - ok1(io_loop() == d); + ok1(io_loop(NULL, NULL) == d); ok1(d->state == 4); ok1(memcmp(d->buf, "hellothere", sizeof(d->buf)) == 0); free(d);