X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fio%2Ftest%2Frun-06-idle.c;h=455b8608f1cae1723763154a5bb918d1b5a46a11;hb=12ab811533406e22b78ce8b227474f1056375ae4;hp=51cca961a077416c47287a5b78d697cd5513d554;hpb=13b38a7282c6043d6abe310e5a16d6610ed7a1c1;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);