/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.copy/ |
D | copy.pass.cpp | 84 TEST_CHECK(checkThrow(f, t, ec)); in TEST_CASE() 91 TEST_CHECK(checkThrow(file, file, ec)); in TEST_CASE() 98 TEST_CHECK(checkThrow(dir, file, ec)); in TEST_CASE() 105 TEST_CHECK(checkThrow(fifo, dir, ec)); in TEST_CASE() 112 TEST_CHECK(checkThrow(file, fifo, ec)); in TEST_CASE() 126 TEST_CHECK(!ec); in TEST_CASE() 127 TEST_CHECK(!exists(dne)); in TEST_CASE() 133 TEST_CHECK(!ec); in TEST_CASE() 134 TEST_CHECK(exists(dest)); in TEST_CASE() 135 TEST_CHECK(is_symlink(dest)); in TEST_CASE() [all …]
|
/external/libcxx/test/std/experimental/filesystem/class.rec.dir.itr/rec.dir.itr.members/ |
D | recursion_pending.pass.cpp | 45 TEST_CHECK(it.recursion_pending() == true); in TEST_CASE() 50 TEST_CHECK(it2.recursion_pending() == false); in TEST_CASE() 56 TEST_CHECK(it.recursion_pending() == true); in TEST_CASE() 62 TEST_CHECK(it2.recursion_pending() == false); in TEST_CASE() 64 TEST_CHECK(rec_pending_it.recursion_pending() == true); in TEST_CASE() 65 TEST_CHECK(no_rec_pending_it.recursion_pending() == false); in TEST_CASE() 78 TEST_CHECK(it.recursion_pending() == true); in TEST_CASE() 82 TEST_CHECK(it2.recursion_pending() == false); in TEST_CASE() 89 TEST_CHECK(it.recursion_pending() == true); in TEST_CASE() 94 TEST_CHECK(it2.recursion_pending() == false); in TEST_CASE() [all …]
|
D | move_assign.pass.cpp | 99 TEST_CHECK(*to == entry); in TEST_CASE() 100 TEST_CHECK(to.options() == from_copy.options()); in TEST_CASE() 101 TEST_CHECK(to.depth() == from_copy.depth()); in TEST_CASE() 102 TEST_CHECK(to.recursion_pending() == from_copy.recursion_pending()); in TEST_CASE() 103 TEST_CHECK(from == endIt || from == to); in TEST_CASE() 114 TEST_CHECK(to == recursive_directory_iterator{}); in TEST_CASE() 128 TEST_CHECK(it2.options() != it.options()); in TEST_CASE() 129 TEST_CHECK(it2.depth() != it.depth()); in TEST_CASE() 130 TEST_CHECK(it2.recursion_pending() != it.recursion_pending()); in TEST_CASE() 131 TEST_CHECK(*it2 != entry); in TEST_CASE() [all …]
|
D | copy_assign.pass.cpp | 90 TEST_CHECK(*to == entry); in TEST_CASE() 91 TEST_CHECK(to.options() == from.options()); in TEST_CASE() 92 TEST_CHECK(to.depth() == from.depth()); in TEST_CASE() 93 TEST_CHECK(to.recursion_pending() == from.recursion_pending()); in TEST_CASE() 104 TEST_CHECK(to == recursive_directory_iterator{}); in TEST_CASE() 116 TEST_CHECK(it2.options() != it.options()); in TEST_CASE() 117 TEST_CHECK(it2.depth() != it.depth()); in TEST_CASE() 118 TEST_CHECK(it2.recursion_pending() != it.recursion_pending()); in TEST_CASE() 119 TEST_CHECK(*it2 != entry); in TEST_CASE() 123 TEST_CHECK(it2.options() == it.options()); in TEST_CASE() [all …]
|
D | ctor.pass.cpp | 69 TEST_CHECK(ec); in TEST_CASE() 70 TEST_CHECK(it == endIt); in TEST_CASE() 74 TEST_CHECK(ec); in TEST_CASE() 75 TEST_CHECK(it == endIt); in TEST_CASE() 108 TEST_CHECK(it == RDI{}); in TEST_CASE() 116 TEST_CHECK(it == RDI{}); in TEST_CASE() 137 TEST_CHECK(it == RDI{}); in TEST_CASE() 145 TEST_CHECK(it == RDI{}); in TEST_CASE() 159 TEST_CHECK(!ec); in TEST_CASE() 160 TEST_CHECK(it == endIt); in TEST_CASE() [all …]
|
D | copy.pass.cpp | 42 TEST_CHECK(it == endIt); in TEST_CASE() 63 TEST_CHECK(it.options() == opts); in TEST_CASE() 64 TEST_CHECK(it.depth() == 1); in TEST_CASE() 65 TEST_CHECK(it.recursion_pending() == false); in TEST_CASE() 73 TEST_CHECK(*it2 == entry); in TEST_CASE() 74 TEST_CHECK(it2.depth() == 1); in TEST_CASE() 75 TEST_CHECK(it2.recursion_pending() == false); in TEST_CASE() 76 TEST_CHECK(it != endIt); in TEST_CASE()
|
D | move.pass.cpp | 43 TEST_CHECK(it == endIt); in TEST_CASE() 44 TEST_CHECK(endIt2 == endIt); in TEST_CASE() 65 TEST_CHECK(it.options() == opts); in TEST_CASE() 66 TEST_CHECK(it.depth() == 1); in TEST_CASE() 67 TEST_CHECK(it.recursion_pending() == false); in TEST_CASE() 75 TEST_CHECK(*it2 == entry); in TEST_CASE() 76 TEST_CHECK(it2.depth() == 1); in TEST_CASE() 77 TEST_CHECK(it2.recursion_pending() == false); in TEST_CASE()
|
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.symlink_status/ |
D | symlink_status.pass.cpp | 46 TEST_CHECK(ec == expect_ec); in TEST_CASE() 47 TEST_CHECK(st.type() == file_type::not_found); in TEST_CASE() 48 TEST_CHECK(st.permissions() == perms::unknown); in TEST_CASE() 52 TEST_CHECK(st.type() == file_type::not_found); in TEST_CASE() 53 TEST_CHECK(st.permissions() == perms::unknown); in TEST_CASE() 79 TEST_CHECK(ec == expect_ec); in TEST_CASE() 80 TEST_CHECK(st.type() == file_type::none); in TEST_CASE() 81 TEST_CHECK(st.permissions() == perms::unknown); in TEST_CASE() 88 TEST_CHECK(err.path1() == p); in TEST_CASE() 89 TEST_CHECK(err.path2() == ""); in TEST_CASE() [all …]
|
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.copy_file/ |
D | copy_file.pass.cpp | 76 TEST_CHECK(fs::copy_file(file, file, ec) == false); in TEST_CASE() 78 TEST_CHECK(checkThrow(file, file, ec)); in TEST_CASE() 82 TEST_CHECK(fs::copy_file(file, file2, ec) == false); in TEST_CASE() 84 TEST_CHECK(checkThrow(file, file2, ec)); in TEST_CASE() 97 TEST_CHECK(!ec); in TEST_CASE() 98 TEST_CHECK(file_size(dest) == 42); in TEST_CASE() 105 TEST_CHECK(!ec); in TEST_CASE() 106 TEST_CHECK(file_size(dest) == 42); in TEST_CASE() 120 TEST_CHECK(!ec); in TEST_CASE() 121 TEST_CHECK(file_size(older) == 55); in TEST_CASE() [all …]
|
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.temp_dir_path/ |
D | temp_directory_path.pass.cpp | 70 TEST_CHECK(!ec); in TEST_CASE() 71 TEST_CHECK(ret == TC.p); in TEST_CASE() 72 TEST_CHECK(is_directory(ret)); in TEST_CASE() 79 LIBCPP_ONLY(TEST_CHECK(ec == expect_ec)); in TEST_CASE() 80 TEST_CHECK(ec != GetTestEC()); in TEST_CASE() 81 TEST_CHECK(ec); in TEST_CASE() 82 TEST_CHECK(ret == ""); in TEST_CASE() 88 LIBCPP_ONLY(TEST_CHECK(ec == expect_ec)); in TEST_CASE() 89 TEST_CHECK(ec != GetTestEC()); in TEST_CASE() 90 TEST_CHECK(ec); in TEST_CASE() [all …]
|
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.absolute/ |
D | absolute.pass.cpp | 45 TEST_CHECK(p.is_absolute()); in TEST_CASE() 47 TEST_CHECK(ret.is_absolute()); in TEST_CASE() 48 TEST_CHECK(ret == p); in TEST_CASE() 56 TEST_CHECK(p.is_absolute()); in TEST_CASE() 62 TEST_CHECK(ret.is_absolute()); in TEST_CASE() 63 TEST_CHECK(ret.has_root_name()); in TEST_CASE() 64 TEST_CHECK(ret.root_name() == path("//net")); in TEST_CASE() 65 TEST_CHECK(ret.has_root_directory()); in TEST_CASE() 66 TEST_CHECK(ret.root_directory() == path("/")); in TEST_CASE() 67 TEST_CHECK(ret == path("//net/foo")); in TEST_CASE() [all …]
|
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.is_empty/ |
D | is_empty.pass.cpp | 41 TEST_CHECK(is_empty(p, ec) == false); in TEST_CASE() 42 TEST_CHECK(ec); in TEST_CASE() 48 TEST_CHECK(!is_empty(StaticEnv::Dir)); in TEST_CASE() 49 TEST_CHECK(!is_empty(StaticEnv::SymlinkToDir)); in TEST_CASE() 55 TEST_CHECK(is_empty(env.test_root)); in TEST_CASE() 57 TEST_CHECK(!is_empty(env.test_root)); in TEST_CASE() 62 TEST_CHECK(is_empty(StaticEnv::EmptyFile)); in TEST_CASE() 63 TEST_CHECK(!is_empty(StaticEnv::NonEmptyFile)); in TEST_CASE() 74 TEST_CHECK(is_empty(dir2, ec) == false); in TEST_CASE() 75 TEST_CHECK(ec); in TEST_CASE() [all …]
|
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.last_write_time/ |
D | last_write_time.pass.cpp | 153 TEST_CHECK(ret != min); in TEST_CASE() 154 TEST_CHECK(ret < C::now()); in TEST_CASE() 155 TEST_CHECK(C::to_time_t(ret) == LastWriteTime(StaticEnv::File)); in TEST_CASE() 158 TEST_CHECK(ret == ret2); in TEST_CASE() 159 TEST_CHECK(C::to_time_t(ret2) == LastWriteTime(StaticEnv::SymlinkToFile)); in TEST_CASE() 163 TEST_CHECK(ret != min); in TEST_CASE() 164 TEST_CHECK(ret < C::now()); in TEST_CASE() 165 TEST_CHECK(C::to_time_t(ret) == LastWriteTime(StaticEnv::Dir)); in TEST_CASE() 168 TEST_CHECK(ret == ret2); in TEST_CASE() 169 TEST_CHECK(C::to_time_t(ret2) == LastWriteTime(StaticEnv::SymlinkToDir)); in TEST_CASE() [all …]
|
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.status/ |
D | status.pass.cpp | 47 TEST_CHECK(ec == expect_ec); in TEST_CASE() 48 TEST_CHECK(st.type() == file_type::not_found); in TEST_CASE() 49 TEST_CHECK(st.permissions() == perms::unknown); in TEST_CASE() 53 TEST_CHECK(st.type() == file_type::not_found); in TEST_CASE() 54 TEST_CHECK(st.permissions() == perms::unknown); in TEST_CASE() 86 TEST_CHECK(ec == TC.expect_ec); in TEST_CASE() 87 TEST_CHECK(st.type() == file_type::none); in TEST_CASE() 88 TEST_CHECK(st.permissions() == perms::unknown); in TEST_CASE() 95 TEST_CHECK(err.path1() == TC.p); in TEST_CASE() 96 TEST_CHECK(err.path2() == ""); in TEST_CASE() [all …]
|
/external/libcxx/test/std/experimental/filesystem/class.directory_iterator/directory_iterator.members/ |
D | ctor.pass.cpp | 65 TEST_CHECK(ec); in TEST_CASE() 66 TEST_CHECK(it == endIt); in TEST_CASE() 70 TEST_CHECK(ec); in TEST_CASE() 71 TEST_CHECK(it == endIt); in TEST_CASE() 103 TEST_CHECK(it == directory_iterator{}); in TEST_CASE() 111 TEST_CHECK(it == directory_iterator{}); in TEST_CASE() 132 TEST_CHECK(it == directory_iterator{}); in TEST_CASE() 140 TEST_CHECK(it == directory_iterator{}); in TEST_CASE() 154 TEST_CHECK(!ec); in TEST_CASE() 155 TEST_CHECK(it == endIt); in TEST_CASE() [all …]
|
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.rename/ |
D | rename.pass.cpp | 75 TEST_CHECK(from_before.type() == status(TC.from).type()); in TEST_CASE() 76 TEST_CHECK(to_before.type() == status(TC.to).type()); in TEST_CASE() 77 TEST_CHECK(checkThrow(TC.from, TC.to, ec)); in TEST_CASE() 90 TEST_CHECK(!ec); in TEST_CASE() 91 TEST_CHECK(is_regular_file(file)); in TEST_CASE() 92 TEST_CHECK(file_size(file) == 42); in TEST_CASE() 98 TEST_CHECK(!ec); in TEST_CASE() 99 TEST_CHECK(!exists(file)); in TEST_CASE() 100 TEST_CHECK(is_regular_file(symlink_status(sym))); in TEST_CASE() 101 TEST_CHECK(file_size(sym) == 42); in TEST_CASE() [all …]
|
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.create_directory/ |
D | create_directory.pass.cpp | 61 TEST_CHECK(fs::create_directory(dir, ec) == false); in TEST_CASE() 62 TEST_CHECK(!ec); in TEST_CASE() 63 TEST_CHECK(is_directory(dir)); in TEST_CASE() 65 TEST_CHECK(fs::create_directory(dir) == false); in TEST_CASE() 73 TEST_CHECK(fs::create_directory(dir, ec) == true); in TEST_CASE() 74 TEST_CHECK(!ec); in TEST_CASE() 75 TEST_CHECK(is_directory(dir)); in TEST_CASE() 79 TEST_CHECK((st.permissions() & perms::all) == expect_perms); in TEST_CASE() 88 TEST_CHECK(fs::create_directory(dir, ec) == false); in TEST_CASE() 89 TEST_CHECK(ec); in TEST_CASE() [all …]
|
D | create_directory_with_attributes.pass.cpp | 50 TEST_CHECK(fs::create_directory(dir, dir2, ec) == false); in TEST_CASE() 51 TEST_CHECK(!ec); in TEST_CASE() 54 TEST_CHECK(orig_p == status(dir).permissions()); in TEST_CASE() 57 TEST_CHECK(fs::create_directory(dir, dir2) == false); in TEST_CASE() 71 TEST_CHECK(fs::create_directory(dir, attr_dir, ec) == true); in TEST_CASE() 72 TEST_CHECK(!ec); in TEST_CASE() 73 TEST_CHECK(is_directory(dir)); in TEST_CASE() 77 TEST_CHECK(st.permissions() == perms::none); in TEST_CASE() 87 TEST_CHECK(fs::create_directory(dir, attr_dir, ec) == false); in TEST_CASE() 88 TEST_CHECK(ec); in TEST_CASE() [all …]
|
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.space/ |
D | space.pass.cpp | 73 TEST_CHECK(ec); in TEST_CASE() 74 TEST_CHECK(info.capacity == expect); in TEST_CASE() 75 TEST_CHECK(info.free == expect); in TEST_CASE() 76 TEST_CHECK(info.available == expect); in TEST_CASE() 77 TEST_CHECK(checkThrow(p, ec)); in TEST_CASE() 88 TEST_CHECK(expect.f_bavail > 0); in TEST_CASE() 89 TEST_CHECK(expect.f_bfree > 0); in TEST_CASE() 90 TEST_CHECK(expect.f_bsize > 0); in TEST_CASE() 91 TEST_CHECK(expect.f_blocks > 0); in TEST_CASE() 96 TEST_CHECK(new_val / fsize == val); // Test for overflow in TEST_CASE() [all …]
|
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.current_path/ |
D | current_path.pass.cpp | 46 TEST_CHECK(p.is_absolute()); in TEST_CASE() 47 TEST_CHECK(is_directory(p)); in TEST_CASE() 50 TEST_CHECK(p2 == p); in TEST_CASE() 57 TEST_CHECK(current_path() == new_path); in TEST_CASE() 66 TEST_CHECK(ec); in TEST_CASE() 67 TEST_CHECK(old_p == current_path()); in TEST_CASE() 77 TEST_CHECK(!ec); in TEST_CASE() 79 TEST_CHECK(new_cwd == StaticEnv::Dir2); in TEST_CASE() 80 TEST_CHECK(new_cwd.is_absolute()); in TEST_CASE() 89 TEST_CHECK(ec); in TEST_CASE() [all …]
|
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.remove_all/ |
D | remove_all.pass.cpp | 73 TEST_CHECK(fs::remove_all(p, ec) == BadRet); in TEST_CASE() 74 TEST_CHECK(ec); in TEST_CASE() 75 TEST_CHECK(checkThrow(p, ec)); in TEST_CASE() 94 TEST_CHECK(remove(p, ec)); in TEST_CASE() 95 TEST_CHECK(!ec); in TEST_CASE() 96 TEST_CHECK(!exists(symlink_status(p))); in TEST_CASE() 109 TEST_CHECK(remove_all(link, ec) == 1); in TEST_CASE() 110 TEST_CHECK(!ec); in TEST_CASE() 111 TEST_CHECK(!exists(symlink_status(link))); in TEST_CASE() 112 TEST_CHECK(exists(dir)); in TEST_CASE() [all …]
|
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.create_directories/ |
D | create_directories.pass.cpp | 45 TEST_CHECK(fs::create_directories(dir, ec) == false); in TEST_CASE() 46 TEST_CHECK(!ec); in TEST_CASE() 47 TEST_CHECK(is_directory(dir)); in TEST_CASE() 55 TEST_CHECK(fs::create_directories(dir, ec) == true); in TEST_CASE() 56 TEST_CHECK(!ec); in TEST_CASE() 57 TEST_CHECK(is_directory(dir)); in TEST_CASE() 65 TEST_CHECK(fs::create_directories(dir, ec) == true); in TEST_CASE() 66 TEST_CHECK(!ec); in TEST_CASE() 67 TEST_CHECK(is_directory(dir)); in TEST_CASE()
|
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.hard_lk_ct/ |
D | hard_link_count.pass.cpp | 41 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() 62 TEST_CHECK(hard_link_count(StaticEnv::Dir3) == Dir3Expect || in TEST_CASE() 67 TEST_CHECK(hard_link_count(StaticEnv::Dir, ec) == DirExpect || in TEST_CASE() 70 TEST_CHECK(hard_link_count(StaticEnv::Dir3, ec) == Dir3Expect || in TEST_CASE() 78 TEST_CHECK(hard_link_count(file) == 1); in TEST_CASE() 81 TEST_CHECK(hard_link_count(file) == 2); in TEST_CASE() 94 TEST_CHECK(hard_link_count(TC, ec) == expect); in TEST_CASE() 95 TEST_CHECK(ec); in TEST_CASE()
|
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.equivalent/ |
D | equivalent.pass.cpp | 54 TEST_CHECK(equivalent(TC.lhs, TC.rhs, ec) == TC.expect); in TEST_CASE() 55 TEST_CHECK(!ec); in TEST_CASE() 64 TEST_CHECK(equivalent(E, DNE) == false); in TEST_CASE() 65 TEST_CHECK(equivalent(DNE, E) == false); in TEST_CASE() 72 TEST_CHECK(equivalent(DNE, DNE, ec) == false); in TEST_CASE() 73 TEST_CHECK(ec); in TEST_CASE() 83 TEST_CHECK(equivalent(file, hl1)); in TEST_CASE() 84 TEST_CHECK(equivalent(file, hl2)); in TEST_CASE() 85 TEST_CHECK(equivalent(hl1, hl2)); in TEST_CASE()
|
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.exists/ |
D | exists.pass.cpp | 60 TEST_CHECK(exists(s) == TC.expect); in TEST_CASE() 67 TEST_CHECK(exists(p) == false); in TEST_CASE() 70 TEST_CHECK(exists(p, ec) == false); in TEST_CASE() 71 TEST_CHECK(!ec); in TEST_CASE() 82 TEST_CHECK(exists(file, ec) == false); in TEST_CASE() 83 TEST_CHECK(ec); in TEST_CASE() 93 TEST_CHECK(exists(file, ec) == false); in TEST_CASE() 94 TEST_CHECK(ec); in TEST_CASE()
|