Lines Matching refs:ATF_REQUIRE
64 ATF_REQUIRE(mkdir(DIR, 0755) == 0);
65 ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
66 ATF_REQUIRE(close(fd) == 0);
67 ATF_REQUIRE(symlink(FILE, LINK) == 0);
69 ATF_REQUIRE((dfd = open(DIR, O_RDONLY, 0)) != -1);
71 ATF_REQUIRE(len != -1);
73 ATF_REQUIRE(close(dfd) == 0);
75 ATF_REQUIRE(strcmp(buf, FILE) == 0);
90 ATF_REQUIRE(mkdir(DIR, 0755) == 0);
91 ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
92 ATF_REQUIRE(close(fd) == 0);
93 ATF_REQUIRE(symlink(FILE, LINK) == 0);
96 ATF_REQUIRE(len != -1);
99 ATF_REQUIRE(strcmp(buf, FILE) == 0);
112 ATF_REQUIRE(readlinkat(AT_FDCWD, LINK, buf, sizeof(buf)) == -1);
124 ATF_REQUIRE(mkdir(DIR, 0755) == 0);
125 ATF_REQUIRE((dfd = open(DIR, O_RDONLY, 0)) != -1);
126 ATF_REQUIRE(readlinkat(dfd, FILEERR, F_OK, 0) == -1);
127 ATF_REQUIRE(close(dfd) == 0);
140 ATF_REQUIRE(mkdir(DIR, 0755) == 0);
141 ATF_REQUIRE((fd = open(FILE, O_CREAT|O_RDWR, 0644)) != -1);
142 ATF_REQUIRE(close(fd) == 0);
143 ATF_REQUIRE(symlink(FILE, LINK) == 0);
145 ATF_REQUIRE(readlinkat(-1, LINK, buf, sizeof(buf)) == -1);