try to fix tests

This commit is contained in:
Adrien DELSALLE 2021-06-09 20:25:20 +02:00
parent da2bf997be
commit 4ab3e88f60
No known key found for this signature in database
GPG Key ID: 639D9226C33B92BB

View File

@ -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");