From b3f9635581118d18a2b75c202efad55d39406875 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Sch=C3=BCmann?= Date: Mon, 9 Nov 2020 09:09:43 +0100 Subject: [PATCH] refs #75, fix for shadow warning in test --- test/filesystem_test.cpp | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/test/filesystem_test.cpp b/test/filesystem_test.cpp index ca71520..e9fe2d8 100644 --- a/test/filesystem_test.cpp +++ b/test/filesystem_test.cpp @@ -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;