Commit ebfaf345 by Jonathan Wakely Committed by Jonathan Wakely

Fix test to work when path::native() returns wstring

	* testsuite/27_io/filesystem/path/itr/traversal.cc: Fix test for
	mingw.

From-SVN: r267089
parent a00ccce8
2018-12-13 Jonathan Wakely <jwakely@redhat.com> 2018-12-13 Jonathan Wakely <jwakely@redhat.com>
* testsuite/27_io/filesystem/path/itr/traversal.cc: Fix test for
mingw.
* testsuite/27_io/filesystem/path/construct/80762.cc: Skip test if * testsuite/27_io/filesystem/path/construct/80762.cc: Skip test if
the Filesystem TS support is not configured. the Filesystem TS support is not configured.
* testsuite/experimental/filesystem/path/construct/80762.cc: Likewise. * testsuite/experimental/filesystem/path/construct/80762.cc: Likewise.
......
...@@ -144,13 +144,13 @@ test04() ...@@ -144,13 +144,13 @@ test04()
auto it = p.begin(); auto it = p.begin();
std::advance(it, 1); std::advance(it, 1);
VERIFY( std::distance(p.begin(), it) == 1 ); VERIFY( std::distance(p.begin(), it) == 1 );
VERIFY( it->native() == "a" ); VERIFY( it->string() == "a" );
std::advance(it, 3); std::advance(it, 3);
VERIFY( std::distance(p.begin(), it) == 4 ); VERIFY( std::distance(p.begin(), it) == 4 );
VERIFY( it->native() == "d" ); VERIFY( it->string() == "d" );
std::advance(it, -2); std::advance(it, -2);
VERIFY( std::distance(p.begin(), it) == 2 ); VERIFY( std::distance(p.begin(), it) == 2 );
VERIFY( it->native() == "b" ); VERIFY( it->string() == "b" );
} }
int int
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment