com php-src: relax test failing in fast computer: ext/date/tests/bug73837.phpt

[email protected] (Joe Watkins)
Newsgroups php.cvs
Message-ID <[email protected]>
Commit:    f6a7f18597af8a9fd53a98a2372ab8a340621ea0
Author:    Remi Collet <[email protected]>         Wed, 29 Mar 2017 07:01:14 +0200
Committer: Joe Watkins <[email protected]>      Wed, 29 Mar 2017 07:54:32 +0100
Parents:   7335437a836cad5121c5e50f4b22c1b10522856f
Branches:  PHP-7.1.4

Link:       http://git.php.net/?p=php-src.git;a=commitdiff;h=f6a7f18597af8a9fd53a98a2372ab8a340621ea0

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.