1 #include <ccan/io/io.h>
2 /* Include the C files directly. */
3 #include <ccan/io/poll.c>
4 #include <ccan/io/io.c>
5 #include <ccan/tap/tap.h>
10 static struct io_plan *setup_waiter(struct io_conn *conn, int *status)
12 return io_wait(conn, status, io_close_cb, NULL);
25 io_new_conn(NULL, fds[0], setup_waiter, &status);
30 ok1(wait(&status) != -1);
31 ok1(WIFSIGNALED(status));
32 ok1(WTERMSIG(status) == SIGABRT);
34 /* This exits depending on whether all tests passed */