[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
Fri Mar 5 23:54:18 PST 2021
mstorsjo created this revision.
mstorsjo requested review of this revision.
Herald added a project: libc++.
Herald added a reviewer: libc++.
Repository:
rG LLVM Github Monorepo
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.328744.patch
Type: text/x-patch
Size: 781 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210306/3ce076d9/attachment.bin>
More information about the libcxx-commits
mailing list