Lines Matching refs:ATF_REQUIRE
57 ATF_REQUIRE(unlink(fifo_path) == 0);
83 ATF_REQUIRE(mkfifo(fifo_path, 0600) == 0);
84 ATF_REQUIRE((rfd = open(fifo_path, O_RDONLY | O_NONBLOCK)) >= 0);
85 ATF_REQUIRE((wfd = open(fifo_path, O_WRONLY | O_NONBLOCK)) >= 0);
86 ATF_REQUIRE((kq = kqueue()) >= 0);
90 ATF_REQUIRE(pipe_buf > 1);
93 ATF_REQUIRE(buf != NULL);
96 ATF_REQUIRE(kevent(kq, event, 1, NULL, 0, NULL) == 0);
99 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &to) == 1);
100 ATF_REQUIRE(event[0].ident == (uintptr_t)wfd);
101 ATF_REQUIRE(event[0].filter == EVFILT_WRITE);
111 ATF_REQUIRE(errno == EAGAIN);
114 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &to) == 0);
117 ATF_REQUIRE(read(rfd, buf, 1) == 1);
124 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &to) == 0);
130 ATF_REQUIRE(read(rfd, buf, pipe_buf - 1) == pipe_buf - 1);
131 ATF_REQUIRE(kevent(kq, NULL, 0, event, 1, &to) == 1);
132 ATF_REQUIRE(event[0].ident == (uintptr_t)wfd);
133 ATF_REQUIRE(event[0].filter == EVFILT_WRITE);