Skip to content

Commit

Permalink
refs #75, fix for shadow warning in test
Browse files Browse the repository at this point in the history
  • Loading branch information
gulrak committed Nov 9, 2020
1 parent b6dd2cd commit b3f9635
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions test/filesystem_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b3f9635

Please sign in to comment.