Lines Matching refs:ATF_REQUIRE
60 ATF_REQUIRE(mkdir(DIR, 0755) == 0);
61 ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
62 ATF_REQUIRE(close(fd) == 0);
64 ATF_REQUIRE((dfd = open(DIR, O_RDONLY, 0)) != -1);
65 ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDONLY, 0)) != -1);
66 ATF_REQUIRE(close(dfd) == 0);
67 ATF_REQUIRE(close(fd) == 0);
80 ATF_REQUIRE(mkdir(DIR, 0755) == 0);
81 ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
82 ATF_REQUIRE(close(fd) == 0);
84 ATF_REQUIRE(chdir(DIR) == 0);
85 ATF_REQUIRE((fd = openat(AT_FDCWD, BASEFILE, O_RDONLY, 0)) != -1);
86 ATF_REQUIRE(close(fd) == 0);
99 ATF_REQUIRE(mkdir(DIR, 0755) == 0);
100 ATF_REQUIRE((fd = openat(AT_FDCWD, FILEERR, O_RDONLY, 0)) == -1);
113 ATF_REQUIRE(mkdir(DIR, 0755) == 0);
114 ATF_REQUIRE((dfd = open(DIR, O_RDONLY, 0)) != -1);
115 ATF_REQUIRE((fd = openat(dfd, FILEERR, O_RDONLY, 0)) == -1);
116 ATF_REQUIRE(close(dfd) == 0);
130 ATF_REQUIRE(mkdir(DIR, 0755) == 0);
131 ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
132 ATF_REQUIRE(close(fd) == 0);
134 ATF_REQUIRE((dfd = open(getcwd(cwd, MAXPATHLEN), O_RDONLY, 0)) != -1);
135 ATF_REQUIRE((fd = openat(dfd, BASEFILE, O_RDONLY, 0)) == -1);
136 ATF_REQUIRE(close(dfd) == 0);
148 ATF_REQUIRE(mkdir(DIR, 0755) == 0);
149 ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
150 ATF_REQUIRE(close(fd) == 0);
152 ATF_REQUIRE((fd = openat(-1, FILE, O_RDONLY, 0)) == -1);