Home | History | Annotate | Download | only in include

Lines Matching defs:paths

39 #include <paths.h>
55 } paths[] = {
117 ATF_TC(paths);
118 ATF_TC_HEAD(paths, tc)
120 atf_tc_set_md_var(tc, "descr", "A basic test for <paths.h>");
123 ATF_TC_BODY(paths, tc)
137 for (i = 0; i < __arraycount(paths); i++) {
138 (void)fprintf(stderr, "testing '%s'\n", paths[i].path);
141 fd = open(paths[i].path, O_RDONLY);
145 if ((paths[i].flags & PATH_OPT) == 0) {
147 " does not exist", paths[i].path);
153 if ((paths[i].flags & PATH_ROOT) == 0) {
158 paths[i].path,
175 paths[i].path, errno, strerror(errno));
182 if ((paths[i].flags & PATH_DEV) != 0) {
184 ATF_CHECK((paths[i].flags & PATH_DIR) == 0);
185 ATF_CHECK((paths[i].flags & PATH_FILE) == 0);
188 if ((paths[i].flags & PATH_DIR) != 0) {
190 ATF_CHECK((paths[i].flags & PATH_DEV) == 0);
191 ATF_CHECK((paths[i].flags & PATH_FILE) == 0);
194 if ((paths[i].flags & PATH_FILE) != 0) {
196 ATF_CHECK((paths[i].flags & PATH_DEV) == 0);
197 ATF_CHECK((paths[i].flags & PATH_DIR) == 0);
207 ATF_TP_ADD_TC(tp, paths);