diff --git a/libcxx/test/std/input.output/file.streams/fstreams/filebuf.members/open_path.pass.cpp b/libcxx/test/std/input.output/file.streams/fstreams/filebuf.members/open_path.pass.cpp --- a/libcxx/test/std/input.output/file.streams/fstreams/filebuf.members/open_path.pass.cpp +++ b/libcxx/test/std/input.output/file.streams/fstreams/filebuf.members/open_path.pass.cpp @@ -46,7 +46,7 @@ assert(f.sbumpc() == '2'); assert(f.sbumpc() == '3'); } - std::remove(p.c_str()); + std::remove(p.string().c_str()); { std::wfilebuf f; assert(f.open(p, std::ios_base::out) != 0); @@ -61,7 +61,7 @@ assert(f.sbumpc() == L'2'); assert(f.sbumpc() == L'3'); } - remove(p.c_str()); + remove(p.string().c_str()); return 0; } diff --git a/libcxx/test/std/input.output/file.streams/fstreams/fstream.cons/path.pass.cpp b/libcxx/test/std/input.output/file.streams/fstreams/fstream.cons/path.pass.cpp --- a/libcxx/test/std/input.output/file.streams/fstreams/fstream.cons/path.pass.cpp +++ b/libcxx/test/std/input.output/file.streams/fstreams/fstream.cons/path.pass.cpp @@ -44,7 +44,7 @@ fs >> x; assert(x == 3.25); } - std::remove(p.c_str()); + std::remove(p.string().c_str()); { std::wfstream fs(p, std::ios_base::in | std::ios_base::out | std::ios_base::trunc); @@ -54,7 +54,7 @@ fs >> x; assert(x == 3.25); } - std::remove(p.c_str()); + std::remove(p.string().c_str()); return 0; } diff --git a/libcxx/test/std/input.output/file.streams/fstreams/fstream.members/open_path.pass.cpp b/libcxx/test/std/input.output/file.streams/fstreams/fstream.members/open_path.pass.cpp --- a/libcxx/test/std/input.output/file.streams/fstreams/fstream.members/open_path.pass.cpp +++ b/libcxx/test/std/input.output/file.streams/fstreams/fstream.members/open_path.pass.cpp @@ -44,7 +44,7 @@ stream >> x; assert(x == 3.25); } - std::remove(p.c_str()); + std::remove(p.string().c_str()); { std::wfstream stream; assert(!stream.is_open()); @@ -57,7 +57,7 @@ stream >> x; assert(x == 3.25); } - std::remove(p.c_str()); + std::remove(p.string().c_str()); return 0; } diff --git a/libcxx/test/std/input.output/file.streams/fstreams/ofstream.cons/path.pass.cpp b/libcxx/test/std/input.output/file.streams/fstreams/ofstream.cons/path.pass.cpp --- a/libcxx/test/std/input.output/file.streams/fstreams/ofstream.cons/path.pass.cpp +++ b/libcxx/test/std/input.output/file.streams/fstreams/ofstream.cons/path.pass.cpp @@ -57,7 +57,7 @@ stream >> x; assert(x == 3.25); } - std::remove(p.c_str()); + std::remove(p.string().c_str()); { std::wofstream stream(p); stream << 3.25; @@ -74,7 +74,7 @@ stream >> x; assert(x == 3.25); } - std::remove(p.c_str()); + std::remove(p.string().c_str()); return 0; } diff --git a/libcxx/test/std/input.output/file.streams/fstreams/ofstream.members/open_path.pass.cpp b/libcxx/test/std/input.output/file.streams/fstreams/ofstream.members/open_path.pass.cpp --- a/libcxx/test/std/input.output/file.streams/fstreams/ofstream.members/open_path.pass.cpp +++ b/libcxx/test/std/input.output/file.streams/fstreams/ofstream.members/open_path.pass.cpp @@ -50,7 +50,7 @@ fs >> c; assert(c == 'a'); } - std::remove(p.c_str()); + std::remove(p.string().c_str()); { std::wofstream fs; assert(!fs.is_open()); @@ -67,7 +67,7 @@ fs >> c; assert(c == L'a'); } - std::remove(p.c_str()); + std::remove(p.string().c_str()); return 0; }