[libcxx] [test] Disable a test regarding error behaviour for excessively long paths on windows

Checking for the existence of an invalid long path name isn't
an error in itself on windows.

Differential Revision: https://reviews.llvm.org/D98141
This commit is contained in:
Martin Storsjö 2021-02-26 14:42:17 +02:00
parent 868187df21
commit 8ba05e1489

View File

@ -85,6 +85,9 @@ TEST_CASE(test_exists_fails)
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_CASE(test_name_too_long) {
TEST_CHECK(exists(file, ec) == false);
TEST_CHECK(ec);
}
#endif
TEST_SUITE_END()