[libcxx-commits] [PATCH] D98141: [libcxx] [test] Disable a test regarding error behaviour for excessively long paths on windows

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


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG8ba05e14897e: [libcxx] [test] Disable a test regarding error behaviour for excessively long… (authored by mstorsjo).

Changed prior to commit:
  https://reviews.llvm.org/D98141?vs=328874&id=330015#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D98141/new/

https://reviews.llvm.org/D98141

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


Index: libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.exists/exists.pass.cpp
===================================================================
--- libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.exists/exists.pass.cpp
+++ 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()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98141.330015.patch
Type: text/x-patch
Size: 741 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210311/fd735118/attachment.bin>


More information about the libcxx-commits mailing list