Fix test to work when path::native() returns wstring
authorJonathan Wakely <jwakely@redhat.com>
Thu, 13 Dec 2018 12:09:33 +0000 (12:09 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 13 Dec 2018 12:09:33 +0000 (12:09 +0000)
* testsuite/27_io/filesystem/path/itr/traversal.cc: Fix test for
mingw.

From-SVN: r267089

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/27_io/filesystem/path/itr/traversal.cc

index 9a7905f1f167664f3357f1968893e1136d20ed2f..3299f104153c8149ea39bbc603c350a7798368a5 100644 (file)
@@ -1,5 +1,8 @@
 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
        the Filesystem TS support is not configured.
        * testsuite/experimental/filesystem/path/construct/80762.cc: Likewise.
index 55760e82a9ad676a45ae4349a8a783f056b84c62..d77e613ee535db4ad70007f5bc2a2c5dc2dc7b6d 100644 (file)
@@ -144,13 +144,13 @@ test04()
   auto it = p.begin();
   std::advance(it, 1);
   VERIFY( std::distance(p.begin(), it) == 1 );
-  VERIFY( it->native() == "a" );
+  VERIFY( it->string() == "a" );
   std::advance(it, 3);
   VERIFY( std::distance(p.begin(), it) == 4 );
-  VERIFY( it->native() == "d" );
+  VERIFY( it->string() == "d" );
   std::advance(it, -2);
   VERIFY( std::distance(p.begin(), it) == 2 );
-  VERIFY( it->native() == "b" );
+  VERIFY( it->string() == "b" );
 }
 
 int