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]")
|
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user