summaryrefslogtreecommitdiff
path: root/test/buildtool/file_system/file_root.test.cpp
diff options
context:
space:
mode:
authorAlberto Sartori <alberto.sartori@huawei.com>2022-04-07 15:13:33 +0200
committerAlberto Sartori <alberto.sartori@huawei.com>2022-04-07 15:13:33 +0200
commit033916a4f9d3fd19659a3bc8c5737f52d327b3d4 (patch)
treefe795df0ea57745db17818d8e3694ead23c1752d /test/buildtool/file_system/file_root.test.cpp
parent45c2639a2df99b8387ad88bc039ca20e26117120 (diff)
downloadjustbuild-033916a4f9d3fd19659a3bc8c5737f52d327b3d4.tar.gz
refactor FileRoot::DirectoryEntries
... to foster the implementation of the built-in target "TREE"
Diffstat (limited to 'test/buildtool/file_system/file_root.test.cpp')
-rw-r--r--test/buildtool/file_system/file_root.test.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/buildtool/file_system/file_root.test.cpp b/test/buildtool/file_system/file_root.test.cpp
index b0dad5d1..b776b5e3 100644
--- a/test/buildtool/file_system/file_root.test.cpp
+++ b/test/buildtool/file_system/file_root.test.cpp
@@ -64,12 +64,12 @@ void TestFileRootReadEntries(FileRoot const& root,
auto entries = root.ReadDirectory(path);
CHECK_FALSE(entries.Empty());
- CHECK(entries.Contains("foo"));
- CHECK(entries.Contains("bar"));
+ CHECK(entries.ContainsFile("foo"));
+ CHECK(entries.ContainsFile("bar"));
if (has_baz) {
- CHECK(entries.Contains("baz"));
+ CHECK_FALSE(entries.ContainsFile("baz"));
}
- CHECK_FALSE(entries.Contains("does_not_exist"));
+ CHECK_FALSE(entries.ContainsFile("does_not_exist"));
}
void TestFileRootReadDirectory(FileRoot const& root) {