Lines Matching refs:ATF_REQUIRE
92 ATF_REQUIRE(map == MAP_FAILED);
96 ATF_REQUIRE(map != MAP_FAILED);
97 ATF_REQUIRE(munmap(map, page) == 0);
150 ATF_REQUIRE(close(fds[0]) == 0);
151 ATF_REQUIRE(close(fds[1]) == 0);
178 ATF_REQUIRE(sysctl(mib, miblen, NULL, &len, NULL, 0) == 0);
180 ATF_REQUIRE(drives != NULL);
181 ATF_REQUIRE(sysctl(mib, miblen, drives, &len, NULL, 0) == 0);
205 ATF_REQUIRE(close(fd) == 0);
208 ATF_REQUIRE(munmap(map, 4096) == 0);
225 ATF_REQUIRE(map == MAP_FAILED);
226 ATF_REQUIRE(errno == EBADF);
231 ATF_REQUIRE(map == MAP_FAILED);
237 ATF_REQUIRE(map == MAP_FAILED);
238 ATF_REQUIRE(errno == EINVAL);
254 ATF_REQUIRE(fd >= 0);
262 ATF_REQUIRE(vp != MAP_FAILED);
269 ATF_REQUIRE(munmap(vp, BUFSIZE) == 0);
277 ATF_REQUIRE(vp != MAP_FAILED);
278 ATF_REQUIRE(vp2 != MAP_FAILED);
282 ATF_REQUIRE(munmap(vp, BUFSIZE) == 0);
283 ATF_REQUIRE(munmap(vp2, BUFSIZE) == 0);
311 ATF_REQUIRE(write(fd, "XXX", 3) == 3);
319 ATF_REQUIRE(close(fd) == 0);
345 ATF_REQUIRE(map != MAP_FAILED);
348 ATF_REQUIRE(pid >= 0);
351 ATF_REQUIRE(signal(SIGSEGV, map_sighandler) != SIG_ERR);
352 ATF_REQUIRE(strlcpy(buf, map, sizeof(buf)) != 0);
357 ATF_REQUIRE(WIFEXITED(sta) != 0);
358 ATF_REQUIRE(WEXITSTATUS(sta) == SIGSEGV);
359 ATF_REQUIRE(munmap(map, page) == 0);
386 ATF_REQUIRE(write(fd, "XXX", 3) == 3);
387 ATF_REQUIRE(close(fd) == 0);
388 ATF_REQUIRE(chmod(path, 0444) == 0);
391 ATF_REQUIRE(fd != -1);
394 ATF_REQUIRE(map != MAP_FAILED);
398 ATF_REQUIRE(pid >= 0);
401 ATF_REQUIRE(signal(SIGSEGV, map_sighandler) != SIG_ERR);
402 ATF_REQUIRE(strlcpy(buf, map, sizeof(buf)) != 0);
407 ATF_REQUIRE(WIFEXITED(sta) != 0);
408 ATF_REQUIRE(WEXITSTATUS(sta) == SIGSEGV);
409 ATF_REQUIRE(munmap(map, 3) == 0);
437 ATF_REQUIRE(p);
439 ATF_REQUIRE(r == 0);
451 ATF_REQUIRE(r == 0);
466 ATF_REQUIRE(q == p);
497 ATF_REQUIRE(ftruncate(fd, page) == 0);
501 ATF_REQUIRE(map != MAP_FAILED);
506 ATF_REQUIRE(ftruncate(fd, 0) == 0);
507 ATF_REQUIRE(ftruncate(fd, page / 8) == 0);
508 ATF_REQUIRE(ftruncate(fd, page / 4) == 0);
509 ATF_REQUIRE(ftruncate(fd, page / 2) == 0);
510 ATF_REQUIRE(ftruncate(fd, page / 12) == 0);
511 ATF_REQUIRE(ftruncate(fd, page / 64) == 0);
514 ATF_REQUIRE(close(fd) == 0);
541 ATF_REQUIRE(write(fd, "foo\n", 5) == 5);
544 ATF_REQUIRE(map != MAP_FAILED);
549 ATF_REQUIRE(sta == 334);
551 ATF_REQUIRE(ftruncate(fd, 0) == 0);
553 ATF_REQUIRE(pid >= 0);
556 ATF_REQUIRE(signal(SIGBUS, map_sighandler) != SIG_ERR);
557 ATF_REQUIRE(signal(SIGSEGV, map_sighandler) != SIG_ERR);
564 ATF_REQUIRE(i == 0);
565 ATF_REQUIRE(sta == 0);
573 ATF_REQUIRE(WIFEXITED(sta) != 0);
576 ATF_REQUIRE(WEXITSTATUS(sta) == SIGBUS);
577 ATF_REQUIRE(munmap(map, page) == 0);
578 ATF_REQUIRE(close(fd) == 0);
690 ATF_REQUIRE(page >= 0);