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 @@ -89,6 +89,9 @@ } #endif +#ifndef _WIN32 +// Checking for the existance of an invalidly 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); @@ -97,5 +100,6 @@ TEST_CHECK(exists(file, ec) == false); TEST_CHECK(ec); } +#endif TEST_SUITE_END()