[libcxx-commits] [libcxx] 15fdd53 - [libcxx] [test] Fix path.itr/iterator.pass.cpp for windows
Martin Storsjö via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Mar 6 09:27:24 PST 2021
Author: Martin Storsjö
Date: 2021-03-06T19:27:14+02:00
New Revision: 15fdd536f9217d4ccc1bb2f5531268cfab5ea846
URL: https://github.com/llvm/llvm-project/commit/15fdd536f9217d4ccc1bb2f5531268cfab5ea846
DIFF: https://github.com/llvm/llvm-project/commit/15fdd536f9217d4ccc1bb2f5531268cfab5ea846.diff
LOG: [libcxx] [test] Fix path.itr/iterator.pass.cpp for windows
Differential Revision: https://reviews.llvm.org/D98107
Added:
Modified:
libcxx/test/std/input.output/filesystems/class.path/path.itr/iterator.pass.cpp
Removed:
################################################################################
diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.itr/iterator.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.itr/iterator.pass.cpp
index f5a1ddd6f5bc..adb6b1bfd407 100644
--- a/libcxx/test/std/input.output/filesystems/class.path/path.itr/iterator.pass.cpp
+++ b/libcxx/test/std/input.output/filesystems/class.path/path.itr/iterator.pass.cpp
@@ -86,7 +86,11 @@ void checkBeginEndBasic() {
}
{
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)));
More information about the libcxx-commits
mailing list