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]") TEST_CASE("Windows: path namespace handling", "[filesystem][path][fs.path.win.namespaces]")
{ {
#ifdef GHC_OS_WINDOWS #ifdef GHC_OS_WINDOWS
std::error_code ec; {
fs::path p(R"(\\localhost\c$\Windows)"); std::error_code ec;
auto symstat = fs::symlink_status(p, ec); fs::path p(R"(\\localhost\c$\Windows)");
CHECK(!ec); auto symstat = fs::symlink_status(p, ec);
auto p2 = fs::canonical(p, ec); CHECK(!ec);
CHECK(!ec); auto p2 = fs::canonical(p, ec);
CHECK(p2 == p); CHECK(!ec);
CHECK(p2 == p);
struct TestInfo }
struct TestInfo
{ {
std::string _path; std::string _path;
std::string _string; std::string _string;