Remove non-deterministic part of canonical() test
authorJonathan Wakely <jwakely@redhat.com>
Thu, 17 Sep 2015 15:33:20 +0000 (16:33 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 17 Sep 2015 15:33:20 +0000 (16:33 +0100)
* testsuite/experimental/filesystem/operations/canonical.cc: Remove
non-deterministic part of the test.

From-SVN: r227873

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/experimental/filesystem/operations/canonical.cc

index 25aa16b2973742464fbd2dc4f79e9b625f1e96fe..fd1ed22cb93d2926de4e1c841a80178e6471a77f 100644 (file)
@@ -1,5 +1,8 @@
 2015-09-17  Jonathan Wakely  <jwakely@redhat.com>
 
+       * testsuite/experimental/filesystem/operations/canonical.cc: Remove
+       non-deterministic part of the test.
+
        PR libstdc++/65142
        * src/c++11/random.cc (random_device::_M_getval()): Retry after short
        reads.
index d752febf44aa94d86ef0a48aed89999f0bf20b1c..5091a709c41ac2fc57c27152c4d96003aaf24b97 100644 (file)
@@ -57,17 +57,6 @@ test01()
   p = canonical( p, ec );
   VERIFY( p == "/" );
   VERIFY( !ec );
-
-  p = "/dev/stdin";
-  if (exists(p))
-    {
-      auto p2 = canonical(p);
-      if (is_symlink(p))
-        VERIFY( p != p2 );
-      else
-        VERIFY( p == p2 );
-      VERIFY( canonical(p2) == p2 );
-    }
 }
 
 int