com php-src: relax test failing in fast computer: ext/date/tests/bug73837.phpt
[email protected] (Remi Collet)
| Newsgroups | php.cvs |
|---|---|
| Message-ID | <[email protected]> |
Commit: d11211fb5379324e99dc67cdd7a0ec5031874ae7 Author: Remi Collet <[email protected]> Wed, 29 Mar 2017 07:01:14 +0200 Parents: d896878ad592335ee094f531f56673178dc2b301 Branches: PHP-7.1 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=d11211fb5379324e99dc67cdd7a0ec5031874ae7 Log: relax test failing in fast computer Changed paths: M ext/date/tests/bug73837.phpt Diff: diff --git a/ext/date/tests/bug73837.phpt b/ext/date/tests/bug73837.phpt index 220deb6..af47cfd 100644 --- a/ext/date/tests/bug73837.phpt +++ b/ext/date/tests/bug73837.phpt @@ -11,7 +11,9 @@ for ( $i = 0; $i < 1000; $i++ ) $collect[$key] = true; } -echo ( count( $collect ) > 990 ) ? "microseconds differ\n" : "microseconds do not differ enough\n"; +var_dump($n = count( $collect )); +echo ( $n > 900 ) ? "microseconds differ\n" : "microseconds do not differ enough\n"; ?> ---EXPECT-- +--EXPECTF-- +int(%d) microseconds differ