Lines Matching refs:ATF_REQUIRE
109 ATF_REQUIRE(pid >= 0);
119 ATF_REQUIRE(pid >= 0);
129 ATF_REQUIRE( pid >= 0);
142 ATF_REQUIRE(write(pf[1], "konec\n", 6) == 6);
245 ATF_REQUIRE(unlink(fifo_path) == 0);
272 ATF_REQUIRE(mkfifo(fifo_path, 0600) == 0);
273 ATF_REQUIRE((rfd = open(fifo_path, O_RDONLY | O_NONBLOCK)) >= 0);
274 ATF_REQUIRE((wfd = open(fifo_path, O_WRONLY | O_NONBLOCK)) >= 0);
278 ATF_REQUIRE(pipe_buf > 1);
281 ATF_REQUIRE(buf != NULL);
290 ATF_REQUIRE(poll(pfd, 2, 0) == 1);
291 ATF_REQUIRE(pfd[0].revents == 0);
292 ATF_REQUIRE(pfd[1].revents == (POLLOUT | POLLWRNORM));
295 ATF_REQUIRE(write(wfd, buf, 1) == 1);
298 ATF_REQUIRE(poll(pfd, 2, 0) == 2);
299 ATF_REQUIRE(pfd[0].revents == (POLLIN | POLLRDNORM));
300 ATF_REQUIRE(pfd[1].revents == (POLLOUT | POLLWRNORM));
303 ATF_REQUIRE(read(rfd, buf, 1) == 1);
313 ATF_REQUIRE(errno == EAGAIN);
316 ATF_REQUIRE(poll(pfd, 2, 0) == 1);
317 ATF_REQUIRE(pfd[0].revents == (POLLIN | POLLRDNORM));
318 ATF_REQUIRE(pfd[1].revents == 0);
321 ATF_REQUIRE(read(rfd, buf, 1) == 1);
328 ATF_REQUIRE(poll(pfd, 2, 0) == 1);
329 ATF_REQUIRE(pfd[0].revents == (POLLIN | POLLRDNORM));
330 ATF_REQUIRE(pfd[1].revents == 0);
337 ATF_REQUIRE(read(rfd, buf, pipe_buf - 1) == pipe_buf - 1);
338 ATF_REQUIRE(poll(pfd, 2, 0) >= 1);
339 ATF_REQUIRE(pfd[1].revents == (POLLOUT | POLLWRNORM));
348 ATF_REQUIRE(errno == EAGAIN);
350 ATF_REQUIRE(poll(pfd, 2, 0) == 1);
351 ATF_REQUIRE(pfd[0].revents == 0);
352 ATF_REQUIRE(pfd[1].revents == (POLLOUT | POLLWRNORM));
377 ATF_REQUIRE(mkfifo(fifo_path, 0600) == 0);
378 ATF_REQUIRE((rfd = open(fifo_path, O_RDONLY | O_NONBLOCK)) >= 0);
379 ATF_REQUIRE((wfd = open(fifo_path, O_WRONLY)) >= 0);
387 ATF_REQUIRE(poll(&pfd, 1, 0) == 1);
388 ATF_REQUIRE((pfd.revents & POLLHUP) != 0);
399 ATF_REQUIRE((wfd = open(fifo_path, O_WRONLY)) >= 0);
400 ATF_REQUIRE(poll(&pfd, 1, 0) == 0);
424 ATF_REQUIRE(mkfifo(fifo_path, 0600) == 0);
425 ATF_REQUIRE((rfd = open(fifo_path, O_RDONLY | O_NONBLOCK)) >= 0);
426 ATF_REQUIRE((wfd = open(fifo_path, O_WRONLY)) >= 0);
433 ATF_REQUIRE(pid >= 0);
443 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts1) == 0);
444 ATF_REQUIRE(poll(&pfd, 1, INFTIM) == 1);
445 ATF_REQUIRE(clock_gettime(CLOCK_MONOTONIC, &ts2) == 0);
448 ATF_REQUIRE(ts2.tv_sec - ts1.tv_sec >= 2);
450 ATF_REQUIRE((pfd.revents & POLLHUP) != 0);