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 f5a1ddd6f5bcb2..adb6b1bfd407e6 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)));