From: Joe Orton Date: Tue, 31 Aug 2004 11:49:19 +0000 (+0000) Subject: MFH: fix gettimeofday() tests to not fail if the same time is X-Git-Tag: php-5.0.2RC1~55 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=85f8b2a830e653b7a8367b3bf9bc088b9876b246;p=php MFH: fix gettimeofday() tests to not fail if the same time is returned by successive calls. --- diff --git a/ext/standard/tests/time/001.phpt b/ext/standard/tests/time/001.phpt index 74802ec7fc..3b0ed8a77f 100644 --- a/ext/standard/tests/time/001.phpt +++ b/ext/standard/tests/time/001.phpt @@ -17,7 +17,7 @@ set_time_limit(0); for ($i=1;$i<=100000;$i++) { list($micro,$time)=explode(" ",microtime()); - if ($time > $last_t || ($time == $last_t && $micro > $last_m)) { + if ($time > $last_t || ($time == $last_t && $micro >= $last_m)) { $passed++; } else if ($failed++ <=10) { $result .= sprintf('%06d', $i).": $time $micro < $last_t $last_m\n";