Lines Matching refs:root
31 static void MakeTree(const char* root) { in MakeTree() argument
34 snprintf(path, sizeof(path), "%s/dir", root); in MakeTree()
36 snprintf(path, sizeof(path), "%s/dir/sub", root); in MakeTree()
38 snprintf(path, sizeof(path), "%s/unreadable-dir", root); in MakeTree()
41 snprintf(path, sizeof(path), "%s/dangler", root); in MakeTree()
43 snprintf(path, sizeof(path), "%s/symlink", root); in MakeTree()
47 snprintf(path, sizeof(path), "%s/regular", root); in MakeTree()
104 TemporaryDir root; in TEST() local
105 MakeTree(root.path); in TEST()
106 ASSERT_EQ(0, ftw(root.path, check_ftw, 128)); in TEST()
110 TemporaryDir root; in TEST() local
111 MakeTree(root.path); in TEST()
112 ASSERT_EQ(0, ftw64(root.path, check_ftw64, 128)); in TEST()
116 TemporaryDir root; in TEST() local
117 MakeTree(root.path); in TEST()
118 ASSERT_EQ(0, nftw(root.path, check_nftw, 128, 0)); in TEST()
122 TemporaryDir root; in TEST() local
123 MakeTree(root.path); in TEST()
124 ASSERT_EQ(0, nftw64(root.path, check_nftw64, 128, 0)); in TEST()
146 TemporaryDir root; in TEST() local
148 std::string path = android::base::StringPrintf("%s/unreadable-directory", root.path); in TEST()
151 ASSERT_EQ(0, ftw(root.path, bug_28197840_ftw<struct stat>, 128)); in TEST()
152 ASSERT_EQ(0, ftw64(root.path, bug_28197840_ftw<struct stat64>, 128)); in TEST()
153 ASSERT_EQ(0, nftw(root.path, bug_28197840_nftw<struct stat>, 128, FTW_PHYS)); in TEST()
154 ASSERT_EQ(0, nftw64(root.path, bug_28197840_nftw<struct stat64>, 128, FTW_PHYS)); in TEST()