X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fio%2Ftest%2Frun-06-idle.c;fp=ccan%2Fio%2Ftest%2Frun-06-idle.c;h=455b8608f1cae1723763154a5bb918d1b5a46a11;hb=1273379185b86aefe5d426d3208289b70044acac;hp=51cca961a077416c47287a5b78d697cd5513d554;hpb=dded32f2b03fca526271e35671fa36d299880429;p=ccan diff --git a/ccan/io/test/run-06-idle.c b/ccan/io/test/run-06-idle.c index 51cca961..455b8608 100644 --- a/ccan/io/test/run-06-idle.c +++ b/ccan/io/test/run-06-idle.c @@ -29,6 +29,7 @@ static struct io_plan read_done(struct io_conn *conn, struct data *d) static void finish_waker(struct io_conn *conn, struct data *d) { + ok1(io_is_idle(idler)); io_wake(idler, io_read(d->buf, sizeof(d->buf), read_done, d)); ok1(d->state == 1); d->state++; @@ -102,7 +103,7 @@ int main(void) int fd, status; /* This is how many tests you plan to run */ - plan_tests(13); + plan_tests(14); d->state = 0; fd = make_listen_fd(PORT, &addrinfo); ok1(fd >= 0);