From 4ab3e88f60da8432770dfa5319d4356943d727f2 Mon Sep 17 00:00:00 2001 From: Adrien DELSALLE Date: Wed, 9 Jun 2021 20:25:20 +0200 Subject: [PATCH] try to fix tests --- test/filesystem_test.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/filesystem_test.cpp b/test/filesystem_test.cpp index 3af6f7b..ac2d8f1 100644 --- a/test/filesystem_test.cpp +++ b/test/filesystem_test.cpp @@ -2847,6 +2847,7 @@ TEST_CASE("Windows: Long filename support", "[filesystem][path][fs.path.win.long TemporaryDirectory t(TempOpt::change_path); char c = 'A'; fs::path dir{"\\\\?\\"}; + fs::path base = dir; dir += fs::current_path().u8string(); for (; c <= 'Z'; ++c) { std::string part = std::string(16, c); @@ -2861,8 +2862,8 @@ TEST_CASE("Windows: Long filename support", "[filesystem][path][fs.path.win.long } } CHECK(c <= 'Z'); + fs::remove(base / std::string(16, 'A')); - fs::remove(fs::current_path().u8string() + std::string(16, 'A')); CHECK_NOTHROW(fs::create_directories(dir)); CHECK(fs::exists(dir)); generateFile(dir / "f0");