[libcxx] [test] Fix path.itr/iterator.pass.cpp for windows
authorMartin Storsjö <martin@martin.st>
Wed, 4 Nov 2020 09:06:45 +0000 (11:06 +0200)
committerMartin Storsjö <martin@martin.st>
Sat, 6 Mar 2021 17:27:14 +0000 (19:27 +0200)
Differential Revision: https://reviews.llvm.org/D98107

libcxx/test/std/input.output/filesystems/class.path/path.itr/iterator.pass.cpp

index f5a1ddd..adb6b1b 100644 (file)
@@ -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)));