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 --- 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 @@ } { 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)));