Home
last modified time | relevance | path

Searched refs:TEST_CHECK (Results 1 – 25 of 76) sorted by relevance

1234

/external/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/
Dfile_type_obs.pass.cpp76 TEST_CHECK(e.exists() == exists(st)); in TEST_CASE()
77 TEST_CHECK(e.is_block_file() == is_block_file(st)); in TEST_CASE()
78 TEST_CHECK(e.is_character_file() == is_character_file(st)); in TEST_CASE()
79 TEST_CHECK(e.is_directory() == is_directory(st)); in TEST_CASE()
80 TEST_CHECK(e.is_fifo() == is_fifo(st)); in TEST_CASE()
81 TEST_CHECK(e.is_other() == is_other(st)); in TEST_CASE()
82 TEST_CHECK(e.is_regular_file() == is_regular_file(st)); in TEST_CASE()
83 TEST_CHECK(e.is_socket() == is_socket(st)); in TEST_CASE()
84 TEST_CHECK(e.is_symlink() == is_symlink(sym_st)); in TEST_CASE()
114 TEST_CHECK(CheckEC(status_ec)); in TEST_CASE()
[all …]
Dfile_size.pass.cpp54 TEST_CHECK(expect == 42); in TEST_CASE()
60 TEST_CHECK(ent.file_size(ec) == expect); in TEST_CASE()
61 TEST_CHECK(!ec); in TEST_CASE()
68 TEST_CHECK(expect == 99); in TEST_CASE()
73 TEST_CHECK(ent.file_size(ec) == 99); in TEST_CASE()
74 TEST_CHECK(!ec); in TEST_CASE()
93 TEST_CHECK(ent.path() == p); in TEST_CASE()
100 TEST_CHECK(got == expect); in TEST_CASE()
101 TEST_CHECK(got == uintmax_t(-1)); in TEST_CASE()
102 TEST_CHECK(ec == other_ec); in TEST_CASE()
[all …]
Dhard_link_count.pass.cpp57 TEST_CHECK(ent.hard_link_count(ec) == expect); in TEST_CASE()
58 TEST_CHECK(!ec); in TEST_CASE()
67 TEST_CHECK(ent.hard_link_count(ec) == expect); in TEST_CASE()
68 TEST_CHECK(!ec); in TEST_CASE()
75 TEST_CHECK(ent.hard_link_count(ec) == 2); in TEST_CASE()
76 TEST_CHECK(!ec); in TEST_CASE()
95 TEST_CHECK(!dummy_ec); in TEST_CASE()
102 TEST_CHECK(ent.hard_link_count(ec) == expect); in TEST_CASE()
103 TEST_CHECK(!ec); in TEST_CASE()
127 TEST_CHECK(ec); in TEST_CASE()
[all …]
Dlast_write_time.pass.cpp58 TEST_CHECK(ent.last_write_time(ec) == expect); in TEST_CASE()
59 TEST_CHECK(!ec); in TEST_CASE()
68 TEST_CHECK(ent.last_write_time(ec) == expect); in TEST_CASE()
69 TEST_CHECK(!ec); in TEST_CASE()
77 TEST_CHECK(ent.last_write_time(ec) == expect); in TEST_CASE()
78 TEST_CHECK(!ec); in TEST_CASE()
102 TEST_CHECK(ErrorIs(ec, std::errc::no_such_file_or_directory)); in TEST_CASE()
105 TEST_CHECK(ent.last_write_time(ec) == file_time_type::min()); in TEST_CASE()
106 TEST_CHECK(ErrorIs(ec, std::errc::no_such_file_or_directory)); in TEST_CASE()
119 TEST_CHECK(expect_bad == file_time_type::min()); in TEST_CASE()
[all …]
/external/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.mods/
Drefresh.pass.cpp43 TEST_CHECK(!e.exists()); in TEST_CASE()
60 TEST_CHECK(ErrorIs(ec, std::errc::no_such_file_or_directory)); in TEST_CASE()
76 TEST_CHECK(ent.exists()); in TEST_CASE()
81 TEST_CHECK(!ent.exists()); in TEST_CASE()
88 TEST_CHECK(ent.exists()); in TEST_CASE()
92 TEST_CHECK(ErrorIs(ec, std::errc::no_such_file_or_directory)); in TEST_CASE()
95 TEST_CHECK(!ent.exists()); in TEST_CASE()
117 TEST_CHECK(ent.is_symlink()); in TEST_CASE()
118 TEST_CHECK(ent.is_regular_file()); in TEST_CASE()
119 TEST_CHECK(ent.exists()); in TEST_CASE()
[all …]
Dreplace_filename.pass.cpp48 TEST_CHECK(e.path() == p); in TEST_CASE()
50 TEST_CHECK(e.path() == expect); in TEST_CASE()
72 TEST_CHECK(e.path() == p); in TEST_CASE()
75 TEST_CHECK(e.path() == expect); in TEST_CASE()
76 TEST_CHECK(ErrorIs(ec, std::errc::no_such_file_or_directory)); in TEST_CASE()
84 TEST_CHECK(e.path() == p); in TEST_CASE()
87 TEST_CHECK(e.path() == expect); in TEST_CASE()
88 TEST_CHECK(!ec); in TEST_CASE()
109 TEST_CHECK(ent.file_size() == 101); in TEST_CASE()
120 TEST_CHECK(ent.is_symlink()); in TEST_CASE()
[all …]
/external/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.copy/
Dcopy.pass.cpp83 TEST_CHECK(checkThrow(f, t, ec)); in TEST_CASE()
90 TEST_CHECK(checkThrow(file, file, ec)); in TEST_CASE()
97 TEST_CHECK(checkThrow(dir, file, ec)); in TEST_CASE()
104 TEST_CHECK(checkThrow(fifo, dir, ec)); in TEST_CASE()
111 TEST_CHECK(checkThrow(file, fifo, ec)); in TEST_CASE()
125 TEST_CHECK(!ec); in TEST_CASE()
126 TEST_CHECK(!exists(dne)); in TEST_CASE()
132 TEST_CHECK(!ec); in TEST_CASE()
133 TEST_CHECK(exists(dest)); in TEST_CASE()
134 TEST_CHECK(is_symlink(dest)); in TEST_CASE()
[all …]
/external/libcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.cons/
Dpath.pass.cpp44 TEST_CHECK(e.path() == p); in TEST_CASE()
65 TEST_CHECK(e.path() == StaticEnv::File); in TEST_CASE()
66 TEST_CHECK(!ec); in TEST_CASE()
72 TEST_CHECK(e.path() == p); in TEST_CASE()
73 TEST_CHECK(ErrorIs(ec, std::errc::no_such_file_or_directory)); in TEST_CASE()
88 TEST_CHECK(!ec); in TEST_CASE()
92 TEST_CHECK(ent.exists()); in TEST_CASE()
93 TEST_CHECK(ent_ec.exists()); in TEST_CASE()
95 TEST_CHECK(ent.file_size() == 42); in TEST_CASE()
96 TEST_CHECK(ent_ec.file_size() == 42); in TEST_CASE()
[all …]
/external/libcxx/test/std/input.output/filesystems/class.rec.dir.itr/rec.dir.itr.members/
Drecursion_pending.pass.cpp45 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 …]
Dmove_assign.pass.cpp99 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 …]
Dcopy_assign.pass.cpp90 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 …]
Dctor.pass.cpp73 TEST_CHECK(ec); in TEST_CASE()
74 TEST_CHECK(it == endIt); in TEST_CASE()
78 TEST_CHECK(ec); in TEST_CASE()
79 TEST_CHECK(it == endIt); in TEST_CASE()
112 TEST_CHECK(it == RDI{}); in TEST_CASE()
120 TEST_CHECK(it == RDI{}); in TEST_CASE()
141 TEST_CHECK(it == RDI{}); in TEST_CASE()
149 TEST_CHECK(it == RDI{}); in TEST_CASE()
163 TEST_CHECK(!ec); in TEST_CASE()
164 TEST_CHECK(it == endIt); in TEST_CASE()
[all …]
/external/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.symlink_status/
Dsymlink_status.pass.cpp46 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/input.output/filesystems/fs.op.funcs/fs.op.temp_dir_path/
Dtemp_directory_path.pass.cpp70 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/input.output/filesystems/fs.op.funcs/fs.op.create_directory/
Dcreate_directory_with_attributes.pass.cpp49 TEST_CHECK(fs::create_directory(dir, dir2, ec) == false); in TEST_CASE()
50 TEST_CHECK(!ec); in TEST_CASE()
53 TEST_CHECK(orig_p == status(dir).permissions()); in TEST_CASE()
56 TEST_CHECK(fs::create_directory(dir, dir2) == false); in TEST_CASE()
70 TEST_CHECK(fs::create_directory(dir, attr_dir, ec) == true); in TEST_CASE()
71 TEST_CHECK(!ec); in TEST_CASE()
72 TEST_CHECK(is_directory(dir)); in TEST_CASE()
76 TEST_CHECK(st.permissions() == perms::none); in TEST_CASE()
86 TEST_CHECK(fs::create_directory(dir, attr_dir, ec) == false); in TEST_CASE()
87 TEST_CHECK(ErrorIs(ec, std::errc::no_such_file_or_directory)); in TEST_CASE()
[all …]
Dcreate_directory.pass.cpp60 TEST_CHECK(fs::create_directory(dir, ec) == false); in TEST_CASE()
61 TEST_CHECK(!ec); in TEST_CASE()
62 TEST_CHECK(is_directory(dir)); in TEST_CASE()
64 TEST_CHECK(fs::create_directory(dir) == false); in TEST_CASE()
72 TEST_CHECK(fs::create_directory(dir, ec) == true); in TEST_CASE()
73 TEST_CHECK(!ec); in TEST_CASE()
74 TEST_CHECK(is_directory(dir)); in TEST_CASE()
78 TEST_CHECK((st.permissions() & perms::all) == expect_perms); in TEST_CASE()
87 TEST_CHECK(fs::create_directory(dir, ec) == false); in TEST_CASE()
88 TEST_CHECK(ec); in TEST_CASE()
[all …]
/external/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.copy_file/
Dcopy_file.pass.cpp64 TEST_CHECK(fs::copy_file(file, file, copy_options::overwrite_existing, in TEST_CASE()
66 TEST_CHECK(ErrorIs(ec, std::errc::file_exists)); in TEST_CASE()
73 TEST_CHECK(fs::copy_file(file, file2, ec) == false); in TEST_CASE()
74 TEST_CHECK(ErrorIs(ec, std::errc::file_exists)); in TEST_CASE()
90 TEST_CHECK(ErrorIs(ec, std::errc::not_supported)); in TEST_CASE()
91 TEST_CHECK(!exists(dest)); in TEST_CASE()
97 TEST_CHECK(ErrorIs(ec, std::errc::not_supported)); in TEST_CASE()
98 TEST_CHECK(is_fifo(fifo)); in TEST_CASE()
112 TEST_CHECK(!ec); in TEST_CASE()
114 TEST_CHECK(new_st.permissions() == new_perms); in TEST_CASE()
[all …]
/external/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.create_directories/
Dcreate_directories.pass.cpp44 TEST_CHECK(fs::create_directories(dir, ec) == false); in TEST_CASE()
45 TEST_CHECK(!ec); in TEST_CASE()
46 TEST_CHECK(is_directory(dir)); in TEST_CASE()
54 TEST_CHECK(fs::create_directories(dir, ec) == true); in TEST_CASE()
55 TEST_CHECK(!ec); in TEST_CASE()
56 TEST_CHECK(is_directory(dir)); in TEST_CASE()
64 TEST_CHECK(fs::create_directories(dir, ec) == true); in TEST_CASE()
65 TEST_CHECK(!ec); in TEST_CASE()
66 TEST_CHECK(is_directory(dir)); in TEST_CASE()
77 TEST_CHECK(create_directories(target, ec) == false); in TEST_CASE()
[all …]
/external/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.equivalent/
Dequivalent.pass.cpp54 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, ec) == false); in TEST_CASE()
65 TEST_CHECK(ec); in TEST_CASE()
66 TEST_CHECK(ec != GetTestEC()); in TEST_CASE()
70 TEST_CHECK(equivalent(DNE, E, ec) == false); in TEST_CASE()
71 TEST_CHECK(ec); in TEST_CASE()
72 TEST_CHECK(ec != GetTestEC()); in TEST_CASE()
83 TEST_CHECK(equivalent(DNE, DNE, ec) == false); in TEST_CASE()
84 TEST_CHECK(ec); in TEST_CASE()
[all …]
/external/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.is_empty/
Dis_empty.pass.cpp41 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/input.output/filesystems/fs.op.funcs/fs.op.status/
Dstatus.pass.cpp47 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/input.output/filesystems/fs.op.funcs/fs.op.rename/
Drename.pass.cpp74 TEST_CHECK(from_before.type() == status(TC.from).type()); in TEST_CASE()
75 TEST_CHECK(to_before.type() == status(TC.to).type()); in TEST_CASE()
76 TEST_CHECK(checkThrow(TC.from, TC.to, ec)); in TEST_CASE()
89 TEST_CHECK(!ec); in TEST_CASE()
90 TEST_CHECK(is_regular_file(file)); in TEST_CASE()
91 TEST_CHECK(file_size(file) == 42); in TEST_CASE()
97 TEST_CHECK(!ec); in TEST_CASE()
98 TEST_CHECK(!exists(file)); in TEST_CASE()
99 TEST_CHECK(is_regular_file(symlink_status(sym))); in TEST_CASE()
100 TEST_CHECK(file_size(sym) == 42); in TEST_CASE()
[all …]
/external/libcxx/test/std/input.output/filesystems/class.directory_iterator/directory_iterator.members/
Dctor.pass.cpp72 TEST_CHECK(ec); in TEST_CASE()
73 TEST_CHECK(it == endIt); in TEST_CASE()
77 TEST_CHECK(ec); in TEST_CASE()
78 TEST_CHECK(it == endIt); in TEST_CASE()
110 TEST_CHECK(it == directory_iterator{}); in TEST_CASE()
118 TEST_CHECK(it == directory_iterator{}); in TEST_CASE()
139 TEST_CHECK(it == directory_iterator{}); in TEST_CASE()
147 TEST_CHECK(it == directory_iterator{}); in TEST_CASE()
161 TEST_CHECK(!ec); in TEST_CASE()
162 TEST_CHECK(it == endIt); in TEST_CASE()
[all …]
/external/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.space/
Dspace.pass.cpp73 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/input.output/filesystems/fs.op.funcs/fs.op.last_write_time/
Dlast_write_time.pass.cpp357 TEST_CHECK(ret != min); in TEST_CASE()
358 TEST_CHECK(ret < C::now()); in TEST_CASE()
359 TEST_CHECK(CompareTime(ret, LastWriteTime(StaticEnv::File))); in TEST_CASE()
362 TEST_CHECK(CompareTime(ret, ret2)); in TEST_CASE()
363 TEST_CHECK(CompareTime(ret2, LastWriteTime(StaticEnv::SymlinkToFile))); in TEST_CASE()
367 TEST_CHECK(ret != min); in TEST_CASE()
368 TEST_CHECK(ret < C::now()); in TEST_CASE()
369 TEST_CHECK(CompareTime(ret, LastWriteTime(StaticEnv::Dir))); in TEST_CASE()
372 TEST_CHECK(CompareTime(ret, ret2)); in TEST_CASE()
373 TEST_CHECK(CompareTime(ret2, LastWriteTime(StaticEnv::SymlinkToDir))); in TEST_CASE()
[all …]

1234