Home | History | Annotate | Download | only in tests

Lines Matching defs:path

30   char path[PATH_MAX];
32 snprintf(path, sizeof(path), "%s/dir", root);
33 ASSERT_EQ(0, mkdir(path, 0755)) << path;
34 snprintf(path, sizeof(path), "%s/dir/sub", root);
35 ASSERT_EQ(0, mkdir(path, 0555)) << path;
36 snprintf(path, sizeof(path), "%s/unreadable-dir", root);
37 ASSERT_EQ(0, mkdir(path, 0000)) << path;
39 snprintf(path, sizeof(path), "%s/dangler", root);
40 ASSERT_EQ(0, symlink("/does-not-exist", path));
41 snprintf(path, sizeof(path), "%s/symlink", root);
42 ASSERT_EQ(0, symlink("sub2", path));
45 snprintf(path, sizeof(path), "%s/regular", root);
46 ASSERT_NE(-1, fd = open(path, O_CREAT|O_TRUNC, 0666));