mirror of
https://git.mirrors.martin98.com/https://github.com/gulrak/filesystem
synced 2025-06-04 11:13:58 +08:00
refs #75, fix for shadow warning in test
This commit is contained in:
parent
b6dd2cd0f1
commit
b3f9635581
@ -2737,15 +2737,17 @@ TEST_CASE("Windows: Long filename support", "[filesystem][path][fs.path.win.long
|
||||
TEST_CASE("Windows: path namespace handling", "[filesystem][path][fs.path.win.namespaces]")
|
||||
{
|
||||
#ifdef GHC_OS_WINDOWS
|
||||
std::error_code ec;
|
||||
fs::path p(R"(\\localhost\c$\Windows)");
|
||||
auto symstat = fs::symlink_status(p, ec);
|
||||
CHECK(!ec);
|
||||
auto p2 = fs::canonical(p, ec);
|
||||
CHECK(!ec);
|
||||
CHECK(p2 == p);
|
||||
|
||||
struct TestInfo
|
||||
{
|
||||
std::error_code ec;
|
||||
fs::path p(R"(\\localhost\c$\Windows)");
|
||||
auto symstat = fs::symlink_status(p, ec);
|
||||
CHECK(!ec);
|
||||
auto p2 = fs::canonical(p, ec);
|
||||
CHECK(!ec);
|
||||
CHECK(p2 == p);
|
||||
}
|
||||
|
||||
struct TestInfo
|
||||
{
|
||||
std::string _path;
|
||||
std::string _string;
|
||||
|
Loading…
x
Reference in New Issue
Block a user