diff --git a/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.exists/exists.pass.cpp b/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.exists/exists.pass.cpp --- a/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.exists/exists.pass.cpp +++ b/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.exists/exists.pass.cpp @@ -85,6 +85,9 @@ TEST_CHECK_THROW(filesystem_error, exists(file)); } +#ifndef _WIN32 +// Checking for the existence of an invalid long path name doesn't +// trigger errors on windows. TEST_CASE(test_name_too_long) { std::string long_name(2500, 'a'); const path file(long_name); @@ -93,5 +96,6 @@ TEST_CHECK(exists(file, ec) == false); TEST_CHECK(ec); } +#endif TEST_SUITE_END()