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 @@ -12,7 +12,7 @@ // class path -// path& replace_filename() +// path& replace_filename( const path& replacement ); #include "filesystem_include.h" #include @@ -35,10 +35,19 @@ , {"/foo", "/", ""} , {"foo", "bar", "bar"} , {"/", "/bar", "bar"} +#ifdef _WIN32 + , {"\\", "\\bar", "bar"} +#else , {"\\", "bar", "bar"} +#endif , {"///", "///bar", "bar"} +#ifdef _WIN32 + , {"\\\\", "\\\\bar", "bar"} + , {"\\/\\", "\\/\\bar", "bar"} +#else , {"\\\\", "bar", "bar"} , {"\\/\\", "\\/bar", "bar"} +#endif , {".", "bar", "bar"} , {"..", "bar", "bar"} , {"/foo\\baz/bong/", "/foo\\baz/bong/bar", "bar"}