mirror of
https://github.com/gulrak/filesystem.git
synced 2026-04-30 19:09:11 +08:00
try to fix tests
This commit is contained in:
parent
da2bf997be
commit
4ab3e88f60
@ -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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user