diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/remove_filename.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/remove_filename.pass.cpp --- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/remove_filename.pass.cpp +++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/remove_filename.pass.cpp @@ -34,13 +34,21 @@ , {"/", "/"} , {"//", "//"} , {"///", "///"} +#ifdef _WIN32 + , {"\\", "\\"} +#else , {"\\", ""} +#endif , {".", ""} , {"..", ""} , {"/foo", "/"} , {"foo/bar", "foo/"} , {"foo/", "foo/"} +#ifdef _WIN32 + , {"//foo", "//foo"} +#else , {"//foo", "//"} +#endif , {"//foo/", "//foo/"} , {"//foo///", "//foo///"} , {"///foo", "///"} @@ -49,7 +57,11 @@ , {"/foo/.", "/foo/"} , {"/foo/..", "/foo/"} , {"/foo/////", "/foo/////"} +#ifdef _WIN32 + , {"/foo\\\\", "/foo\\\\"} +#else , {"/foo\\\\", "/"} +#endif , {"/foo//\\/", "/foo//\\/"} , {"///foo", "///"} , {"file.txt", ""} diff --git a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/replace_filename.pass.cpp b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/replace_filename.pass.cpp --- a/libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/replace_filename.pass.cpp +++ b/libcxx/test/std/input.output/filesystems/class.path/path.member/path.modifiers/replace_filename.pass.cpp @@ -35,10 +35,22 @@ , {"/foo", "/", ""} , {"foo", "bar", "bar"} , {"/", "/bar", "bar"} +#ifdef _WIN32 + , {"\\", "\\bar", "bar"} +#else , {"\\", "bar", "bar"} +#endif , {"///", "///bar", "bar"} +#ifdef _WIN32 + , {"\\\\", "\\\\bar", "bar"} +#else , {"\\\\", "bar", "bar"} +#endif +#ifdef _WIN32 + , {"\\/\\", "\\/\\bar", "bar"} +#else , {"\\/\\", "\\/bar", "bar"} +#endif , {".", "bar", "bar"} , {"..", "bar", "bar"} , {"/foo\\baz/bong/", "/foo\\baz/bong/bar", "bar"}