]> git.ozlabs.org Git - ccan/blobdiff - ccan/io/test/run-06-idle.c
ccan/io: io_halfclose.
[ccan] / ccan / io / test / run-06-idle.c
index d01cb31fff4da1393e6d4071bc5b059ad7ff0326..57d5e20c13ec33223300f409f35953044641abd2 100644 (file)
@@ -9,7 +9,9 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 
-#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);