mirror of git://gcc.gnu.org/git/gcc.git
Remove non-deterministic part of canonical() test
* testsuite/experimental/filesystem/operations/canonical.cc: Remove non-deterministic part of the test. From-SVN: r227873
This commit is contained in:
parent
a2b4d73daf
commit
01610fec49
|
|
@ -1,5 +1,8 @@
|
||||||
2015-09-17 Jonathan Wakely <jwakely@redhat.com>
|
2015-09-17 Jonathan Wakely <jwakely@redhat.com>
|
||||||
|
|
||||||
|
* testsuite/experimental/filesystem/operations/canonical.cc: Remove
|
||||||
|
non-deterministic part of the test.
|
||||||
|
|
||||||
PR libstdc++/65142
|
PR libstdc++/65142
|
||||||
* src/c++11/random.cc (random_device::_M_getval()): Retry after short
|
* src/c++11/random.cc (random_device::_M_getval()): Retry after short
|
||||||
reads.
|
reads.
|
||||||
|
|
|
||||||
|
|
@ -57,17 +57,6 @@ test01()
|
||||||
p = canonical( p, ec );
|
p = canonical( p, ec );
|
||||||
VERIFY( p == "/" );
|
VERIFY( p == "/" );
|
||||||
VERIFY( !ec );
|
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
|
int
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue