refs #75, fix for shadow warning in test

This commit is contained in:
Steffen Schümann 2020-11-09 09:09:43 +01:00
parent b6dd2cd0f1
commit b3f9635581

View File

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