From 85f8b2a830e653b7a8367b3bf9bc088b9876b246 Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Tue, 31 Aug 2004 11:49:19 +0000 Subject: [PATCH] MFH: fix gettimeofday() tests to not fail if the same time is returned by successive calls. --- ext/standard/tests/time/001.phpt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; -- 2.50.1