Skip to content

Commit 15fdd53

Browse files
committed
[libcxx] [test] Fix path.itr/iterator.pass.cpp for windows
Differential Revision: https://reviews.llvm.org/D98107
1 parent 06a8a86 commit 15fdd53

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,11 @@ void checkBeginEndBasic() {
8686
}
8787
{
8888
path p("//root_name//first_dir////second_dir");
89+
#ifdef _WIN32
90+
const path expect[] = {"//root_name", "/", "first_dir", "second_dir"};
91+
#else
8992
const path expect[] = {"/", "root_name", "first_dir", "second_dir"};
93+
#endif
9094
assert(checkCollectionsEqual(p.begin(), p.end(), std::begin(expect), std::end(expect)));
9195
assert(checkCollectionsEqualBackwards(p.begin(), p.end(), std::begin(expect), std::end(expect)));
9296

0 commit comments

Comments
 (0)