summaryrefslogtreecommitdiff
path: root/test/buildtool/file_system/file_root.test.cpp
diff options
context:
space:
mode:
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, 5 insertions, 3 deletions
diff --git a/test/buildtool/file_system/file_root.test.cpp b/test/buildtool/file_system/file_root.test.cpp
index eab17ff6..8828fb7b 100644
--- a/test/buildtool/file_system/file_root.test.cpp
+++ b/test/buildtool/file_system/file_root.test.cpp
@@ -165,7 +165,8 @@ TEST_CASE("Creating file root", "[file_root]") {
REQUIRE(root_path);
CHECK(FileRoot{*root_path}.Exists("."));
- CHECK_FALSE(FileRoot{"does_not_exist"}.Exists("."));
+ CHECK_FALSE(
+ FileRoot{std::filesystem::path{"does_not_exist"}}.Exists("."));
}
SECTION("git root") {
@@ -184,8 +185,9 @@ TEST_CASE("Creating file root", "[file_root]") {
REQUIRE(root_path);
CHECK(FileRoot{*root_path, /*ignore_special=*/true}.Exists("."));
- CHECK_FALSE(
- FileRoot{"does_not_exist", /*ignore_special=*/true}.Exists("."));
+ CHECK_FALSE(FileRoot{std::filesystem::path{"does_not_exist"},
+ /*ignore_special=*/true}
+ .Exists("."));
}
SECTION("git root ignore-special") {