Home
last modified time | relevance | path

Searched refs:StaticEnv (Results 1 – 25 of 49) sorted by relevance

12

/external/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.weakly_canonical/
Dweakly_canonical.pass.cpp44 {StaticEnv::File, StaticEnv::File}, in main()
45 {StaticEnv::Dir, StaticEnv::Dir}, in main()
46 {StaticEnv::SymlinkToDir, StaticEnv::Dir}, in main()
47 {StaticEnv::SymlinkToDir / "dir2/.", StaticEnv::Dir / "dir2"}, in main()
50 {StaticEnv::SymlinkToDir / "dir2/./", StaticEnv::Dir / "dir2"}, in main()
51 {StaticEnv::SymlinkToDir / "dir2/DNE/./", StaticEnv::Dir / "dir2/DNE/"}, in main()
52 {StaticEnv::SymlinkToDir / "dir2", StaticEnv::Dir2}, in main()
53 {StaticEnv::SymlinkToDir / "dir2/../dir2/DNE/..", StaticEnv::Dir2 / ""}, in main()
54 {StaticEnv::SymlinkToDir / "dir2/dir3/../DNE/DNE2", StaticEnv::Dir2 / "DNE/DNE2"}, in main()
55 {StaticEnv::Dir / "../dir1", StaticEnv::Dir}, in main()
[all …]
/external/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.relative/
Drelative.pass.cpp45 fs::path p(StaticEnv::File); in TEST_CASE()
47 TEST_CHECK(output == std::string(StaticEnv::File)); in TEST_CASE()
51 fs::path p(StaticEnv::Dir); in TEST_CASE()
53 TEST_CHECK(output == std::string(StaticEnv::Dir)); in TEST_CASE()
57 fs::path p(StaticEnv::SymlinkToDir); in TEST_CASE()
59 TEST_CHECK(output == std::string(StaticEnv::Dir)); in TEST_CASE()
63 fs::path p(StaticEnv::SymlinkToDir / "dir2/."); in TEST_CASE()
65 TEST_CHECK(output == std::string(StaticEnv::Dir / "dir2")); in TEST_CASE()
71 fs::path p(StaticEnv::SymlinkToDir / "dir2/./"); in TEST_CASE()
73 TEST_CHECK(output == std::string(StaticEnv::Dir / "dir2")); in TEST_CASE()
[all …]
/external/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.canonical/
Dcanonical.pass.cpp52 const path Root = StaticEnv::Root; in TEST_CASE()
54 const path DirName = StaticEnv::Dir.filename(); in TEST_CASE()
55 const path SymlinkName = StaticEnv::SymlinkToFile.filename(); in TEST_CASE()
60 TestCase(path p1, path e, path b = StaticEnv::Root) in TEST_CASE()
65 { DirName / ".." / "." / DirName, StaticEnv::Dir, Root}, in TEST_CASE()
66 { StaticEnv::Dir2 / "..", StaticEnv::Dir }, in TEST_CASE()
67 { StaticEnv::Dir3 / "../..", StaticEnv::Dir }, in TEST_CASE()
68 { StaticEnv::Dir / ".", StaticEnv::Dir }, in TEST_CASE()
69 { Root / "." / DirName / ".." / DirName, StaticEnv::Dir}, in TEST_CASE()
70 { path("..") / "." / RootName / DirName / ".." / DirName, StaticEnv::Dir, Root}, in TEST_CASE()
[all …]
/external/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.hard_lk_ct/
Dhard_link_count.pass.cpp41 TEST_CHECK(hard_link_count(StaticEnv::File) == 1); in TEST_CASE()
43 TEST_CHECK(hard_link_count(StaticEnv::File, ec) == 1); in TEST_CASE()
59 TEST_CHECK(hard_link_count(StaticEnv::Dir) == DirExpect || in TEST_CASE()
60 hard_link_count(StaticEnv::Dir) == DirExpectAlt || in TEST_CASE()
61 hard_link_count(StaticEnv::Dir) == 1); in TEST_CASE()
62 TEST_CHECK(hard_link_count(StaticEnv::Dir3) == Dir3Expect || in TEST_CASE()
63 hard_link_count(StaticEnv::Dir3) == Dir3ExpectAlt || in TEST_CASE()
64 hard_link_count(StaticEnv::Dir3) == 1); in TEST_CASE()
67 TEST_CHECK(hard_link_count(StaticEnv::Dir, ec) == DirExpect || in TEST_CASE()
68 hard_link_count(StaticEnv::Dir, ec) == DirExpectAlt || in TEST_CASE()
[all …]
/external/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.equivalent/
Dequivalent.pass.cpp45 {StaticEnv::Dir, StaticEnv::Dir, true}, in TEST_CASE()
46 {StaticEnv::File, StaticEnv::Dir, false}, in TEST_CASE()
47 {StaticEnv::Dir, StaticEnv::SymlinkToDir, true}, in TEST_CASE()
48 {StaticEnv::Dir, StaticEnv::SymlinkToFile, false}, in TEST_CASE()
49 {StaticEnv::File, StaticEnv::File, true}, in TEST_CASE()
50 {StaticEnv::File, StaticEnv::SymlinkToFile, true}, in TEST_CASE()
60 const path E = StaticEnv::File; in TEST_CASE()
61 const path DNE = StaticEnv::DNE; in TEST_CASE()
/external/libcxx/test/std/input.output/filesystems/class.rec.dir.itr/rec.dir.itr.members/
Drecursion_pending.pass.cpp33 recursive_directory_iterator it(StaticEnv::Dir); in TEST_CASE()
39 recursive_directory_iterator rec_pending_it(StaticEnv::Dir); in TEST_CASE()
40 recursive_directory_iterator no_rec_pending_it(StaticEnv::Dir); in TEST_CASE()
53 recursive_directory_iterator it(StaticEnv::Dir); in TEST_CASE()
60 recursive_directory_iterator it2(StaticEnv::Dir); in TEST_CASE()
71 recursive_directory_iterator rec_pending_it(StaticEnv::Dir); in TEST_CASE()
72 recursive_directory_iterator no_rec_pending_it(StaticEnv::Dir); in TEST_CASE()
85 recursive_directory_iterator it(StaticEnv::Dir); in TEST_CASE()
91 recursive_directory_iterator it2(StaticEnv::Dir); in TEST_CASE()
104 recursive_directory_iterator it(StaticEnv::Dir); in TEST_CASE()
[all …]
Dctor.pass.cpp68 const path testPaths[] = { StaticEnv::DNE, StaticEnv::BadSymlink }; in TEST_CASE()
174 const path testDir = StaticEnv::Dir; in TEST_CASE()
175 std::set<path> dir_contents(std::begin(StaticEnv::DirIterationList), in TEST_CASE()
176 std::end( StaticEnv::DirIterationList)); in TEST_CASE()
195 const path testFile = StaticEnv::File; in TEST_CASE()
210 const path goodDir = StaticEnv::Dir; in TEST_CASE()
211 const path badDir = StaticEnv::DNE; in TEST_CASE()
Dincrement.pass.cpp46 const path testDir = StaticEnv::Dir; in TEST_CASE()
47 const std::set<path> dir_contents(std::begin(StaticEnv::RecDirIterationList), in TEST_CASE()
48 std::end( StaticEnv::RecDirIterationList)); in TEST_CASE()
69 const path testDir = StaticEnv::Dir; in TEST_CASE()
70 const std::set<path> dir_contents(std::begin(StaticEnv::RecDirIterationList), in TEST_CASE()
71 std::end( StaticEnv::RecDirIterationList)); in TEST_CASE()
92 const path testDir = StaticEnv::Dir; in TEST_CASE()
93 const std::set<path> dir_contents(std::begin(StaticEnv::RecDirIterationList), in TEST_CASE()
94 std::end( StaticEnv::RecDirIterationList)); in TEST_CASE()
116 const path testDir = StaticEnv::Dir; in TEST_CASE()
[all …]
/external/libcxx/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/
Dincrement.pass.cpp47 const path testDir = StaticEnv::Dir; in TEST_CASE()
48 const std::set<path> dir_contents(std::begin(StaticEnv::DirIterationList), in TEST_CASE()
49 std::end( StaticEnv::DirIterationList)); in TEST_CASE()
70 const path testDir = StaticEnv::Dir; in TEST_CASE()
71 const std::set<path> dir_contents(std::begin(StaticEnv::DirIterationList), in TEST_CASE()
72 std::end( StaticEnv::DirIterationList)); in TEST_CASE()
94 const path testDir = StaticEnv::Dir; in TEST_CASE()
95 const std::set<path> dir_contents(std::begin(StaticEnv::DirIterationList), in TEST_CASE()
96 std::end( StaticEnv::DirIterationList)); in TEST_CASE()
Dmove_assign.pass.cpp45 const path testDir = StaticEnv::Dir; in TEST_CASE()
60 const path testDir = StaticEnv::Dir; in TEST_CASE()
74 const path testDir = StaticEnv::Dir; in TEST_CASE()
105 directory_iterator it(StaticEnv::Dir); in TEST_CASE()
106 directory_iterator it2(StaticEnv::Dir); in TEST_CASE()
Dctor.pass.cpp67 const path testPaths[] = { StaticEnv::DNE, StaticEnv::BadSymlink }; in TEST_CASE()
172 const path testDir = StaticEnv::Dir; in TEST_CASE()
173 std::set<path> dir_contents(std::begin(StaticEnv::DirIterationList), in TEST_CASE()
174 std::end( StaticEnv::DirIterationList)); in TEST_CASE()
193 const path testFile = StaticEnv::File; in TEST_CASE()
228 const path symlinkToDir = StaticEnv::SymlinkToDir; in TEST_CASE()
230 for (path const& p : StaticEnv::DirIterationList) { in TEST_CASE()
/external/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.cons/
Dpath.pass.cpp64 const directory_entry e(StaticEnv::File, ec); in TEST_CASE()
65 TEST_CHECK(e.path() == StaticEnv::File); in TEST_CASE()
126 directory_entry ent(StaticEnv::DNE, ec); in TEST_CASE()
128 TEST_CHECK(ent.path() == StaticEnv::DNE); in TEST_CASE()
133 directory_entry ent(StaticEnv::BadSymlink, ec); in TEST_CASE()
135 TEST_CHECK(ent.path() == StaticEnv::BadSymlink); in TEST_CASE()
139 directory_entry ent(StaticEnv::DNE); in TEST_CASE()
140 TEST_CHECK(ent.path() == StaticEnv::DNE); in TEST_CASE()
142 directory_entry ent_two(StaticEnv::BadSymlink); in TEST_CASE()
143 TEST_CHECK(ent_two.path() == StaticEnv::BadSymlink); in TEST_CASE()
/external/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.file_size/
Dfile_size.pass.cpp41 const path p = StaticEnv::EmptyFile; in TEST_CASE()
58 const path p = StaticEnv::File; in TEST_CASE()
59 const path p2 = StaticEnv::SymlinkToFile; in TEST_CASE()
69 {StaticEnv::Dir, std::errc::is_a_directory}, in TEST_CASE()
70 {StaticEnv::SymlinkToDir, std::errc::is_a_directory}, in TEST_CASE()
71 {StaticEnv::BadSymlink, std::errc::no_such_file_or_directory}, in TEST_CASE()
72 {StaticEnv::DNE, std::errc::no_such_file_or_directory}, in TEST_CASE()
/external/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.space/
Dspace.pass.cpp66 StaticEnv::DNE, in TEST_CASE()
67 StaticEnv::BadSymlink in TEST_CASE()
87 TEST_REQUIRE(::statvfs(StaticEnv::Dir.c_str(), &expect) != -1); in TEST_CASE()
109 StaticEnv::File, in TEST_CASE()
110 StaticEnv::Dir, in TEST_CASE()
111 StaticEnv::Dir2, in TEST_CASE()
112 StaticEnv::SymlinkToFile, in TEST_CASE()
113 StaticEnv::SymlinkToDir in TEST_CASE()
/external/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.is_symlink/
Dis_symlink.pass.cpp71 {StaticEnv::File, false}, in TEST_CASE()
72 {StaticEnv::Dir, false}, in TEST_CASE()
73 {StaticEnv::SymlinkToFile, true}, in TEST_CASE()
74 {StaticEnv::SymlinkToDir, true}, in TEST_CASE()
75 {StaticEnv::BadSymlink, true} in TEST_CASE()
84 const path p = StaticEnv::DNE; in TEST_CASE()
/external/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.current_path/
Dcurrent_path.pass.cpp55 const path new_path = StaticEnv::Dir; in TEST_CASE()
62 const path p = StaticEnv::File; in TEST_CASE()
72 const path base = StaticEnv::Dir; in TEST_CASE()
74 const path p = StaticEnv::Dir2.filename(); in TEST_CASE()
79 TEST_CHECK(new_cwd == StaticEnv::Dir2); in TEST_CASE()
/external/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.status/
Dstatus.pass.cpp40 StaticEnv::DNE, in TEST_CASE()
41 StaticEnv::BadSymlink in TEST_CASE()
111 {StaticEnv::File, file_type::regular}, in TEST_CASE()
112 {StaticEnv::SymlinkToFile, file_type::regular}, in TEST_CASE()
113 {StaticEnv::Dir, file_type::directory}, in TEST_CASE()
114 {StaticEnv::SymlinkToDir, file_type::directory}, in TEST_CASE()
116 {StaticEnv::CharFile, file_type::character}, in TEST_CASE()
/external/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.is_empty/
Dis_empty.pass.cpp39 const path p = StaticEnv::DNE; in TEST_CASE()
48 TEST_CHECK(!is_empty(StaticEnv::Dir)); in TEST_CASE()
49 TEST_CHECK(!is_empty(StaticEnv::SymlinkToDir)); in TEST_CASE()
62 TEST_CHECK(is_empty(StaticEnv::EmptyFile)); in TEST_CASE()
63 TEST_CHECK(!is_empty(StaticEnv::NonEmptyFile)); in TEST_CASE()
/external/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.symlink_status/
Dsymlink_status.pass.cpp40 StaticEnv::DNE in TEST_CASE()
118 {StaticEnv::BadSymlink, file_type::symlink}, in TEST_CASE()
119 {StaticEnv::File, file_type::regular}, in TEST_CASE()
120 {StaticEnv::SymlinkToFile, file_type::symlink}, in TEST_CASE()
121 {StaticEnv::Dir, file_type::directory}, in TEST_CASE()
122 {StaticEnv::SymlinkToDir, file_type::symlink}, in TEST_CASE()
124 {StaticEnv::CharFile, file_type::character}, in TEST_CASE()
/external/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/
Dstatus.pass.cpp38 path TestCases[] = {StaticEnv::File, StaticEnv::Dir, StaticEnv::SymlinkToFile, in TEST_CASE()
39 StaticEnv::DNE}; in TEST_CASE()
Dsymlink_status.pass.cpp38 path TestCases[] = {StaticEnv::File, StaticEnv::Dir, StaticEnv::SymlinkToFile, in TEST_CASE()
39 StaticEnv::DNE}; in TEST_CASE()
Dlast_write_time.pass.cpp100 ent.assign(StaticEnv::DNE, ec); in TEST_CASE()
101 TEST_REQUIRE(ent.path() == StaticEnv::DNE); in TEST_CASE()
108 ExceptionChecker Checker(StaticEnv::DNE, in TEST_CASE()
118 file_time_type expect_bad = last_write_time(StaticEnv::BadSymlink, ec); in TEST_CASE()
123 ent.assign(StaticEnv::BadSymlink, ec); in TEST_CASE()
124 TEST_REQUIRE(ent.path() == StaticEnv::BadSymlink); in TEST_CASE()
131 ExceptionChecker Checker(StaticEnv::BadSymlink, in TEST_CASE()
Dfile_size.pass.cpp128 ent.assign(StaticEnv::DNE, ec); in TEST_CASE()
129 TEST_REQUIRE(ent.path() == StaticEnv::DNE); in TEST_CASE()
136 ExceptionChecker Checker(StaticEnv::DNE, in TEST_CASE()
146 uintmax_t expect_bad = file_size(StaticEnv::BadSymlink, ec); in TEST_CASE()
151 ent.assign(StaticEnv::BadSymlink, ec); in TEST_CASE()
152 TEST_REQUIRE(ent.path() == StaticEnv::BadSymlink); in TEST_CASE()
159 ExceptionChecker Checker(StaticEnv::BadSymlink, in TEST_CASE()
Dhard_link_count.pass.cpp126 ent.assign(StaticEnv::DNE, ec); in TEST_CASE()
128 TEST_REQUIRE(ent.path() == StaticEnv::DNE); in TEST_CASE()
135 ExceptionChecker Checker(StaticEnv::DNE, in TEST_CASE()
145 uintmax_t expect_bad = hard_link_count(StaticEnv::BadSymlink, ec); in TEST_CASE()
150 ent.assign(StaticEnv::BadSymlink, ec); in TEST_CASE()
151 TEST_REQUIRE(ent.path() == StaticEnv::BadSymlink); in TEST_CASE()
158 ExceptionChecker Checker(StaticEnv::BadSymlink, in TEST_CASE()
/external/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.is_directory/
Dis_directory.pass.cpp66 const path p = StaticEnv::DNE; in TEST_CASE()
72 TEST_CHECK(is_directory(StaticEnv::Dir)); in TEST_CASE()
73 TEST_CHECK(is_directory(StaticEnv::SymlinkToDir)); in TEST_CASE()
74 TEST_CHECK(!is_directory(StaticEnv::File)); in TEST_CASE()

12