[libcxx-commits] [PATCH] D98107: [libcxx] [test] Fix path.itr/iterator.pass.cpp for windows
Martin Storsjö via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Mar 6 09:27:24 PST 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG15fdd536f921: [libcxx] [test] Fix path.itr/iterator.pass.cpp for windows (authored by mstorsjo).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98107/new/
https://reviews.llvm.org/D98107
Files:
libcxx/test/std/input.output/filesystems/class.path/path.itr/iterator.pass.cpp
Index: libcxx/test/std/input.output/filesystems/class.path/path.itr/iterator.pass.cpp
===================================================================
--- libcxx/test/std/input.output/filesystems/class.path/path.itr/iterator.pass.cpp
+++ libcxx/test/std/input.output/filesystems/class.path/path.itr/iterator.pass.cpp
@@ -86,7 +86,11 @@
}
{
path p("//root_name//first_dir////second_dir");
+#ifdef _WIN32
+ const path expect[] = {"//root_name", "/", "first_dir", "second_dir"};
+#else
const path expect[] = {"/", "root_name", "first_dir", "second_dir"};
+#endif
assert(checkCollectionsEqual(p.begin(), p.end(), std::begin(expect), std::end(expect)));
assert(checkCollectionsEqualBackwards(p.begin(), p.end(), std::begin(expect), std::end(expect)));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98107.328774.patch
Type: text/x-patch
Size: 781 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210306/abd2093c/attachment-0001.bin>
More information about the libcxx-commits
mailing list