[libcxx-commits] [libcxx] 8ba05e1 - [libcxx] [test] Disable a test regarding error behaviour for excessively long paths on windows

Martin Storsjö via libcxx-commits libcxx-commits at lists.llvm.org
Thu Mar 11 10:22:08 PST 2021


Author: Martin Storsjö
Date: 2021-03-11T20:21:54+02:00
New Revision: 8ba05e14897eb2e817bab5bb4ac4540741f5fef8

URL: https://github.com/llvm/llvm-project/commit/8ba05e14897eb2e817bab5bb4ac4540741f5fef8
DIFF: https://github.com/llvm/llvm-project/commit/8ba05e14897eb2e817bab5bb4ac4540741f5fef8.diff

LOG: [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

Added: 
    

Modified: 
    libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.exists/exists.pass.cpp

Removed: 
    


################################################################################
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
index 581d9fe041a9..d23080a0a7d1 100644
--- 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_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()


        


More information about the libcxx-commits mailing list