diff options
author | Andi Gutmans <andi@php.net> | 2004-07-23 21:53:16 +0000 |
---|---|---|
committer | Andi Gutmans <andi@php.net> | 2004-07-23 21:53:16 +0000 |
commit | d1b29ad4c262df3b0932e2253c376415830e6dc3 (patch) | |
tree | dffd16934a602312451daaf696c138eb880a66fc /ext/standard/tests/time | |
parent | 8c6ab178e48b74760c1b22ebdafd3c0fe7bda43a (diff) | |
download | php-git-d1b29ad4c262df3b0932e2253c376415830e6dc3.tar.gz |
- There's no reason why gettimeofday() shouldn''t return the same time in
successive calls; this test fails spuriously on Linux/x86_64 (which has
a particularly fast gettimeofday() implementation).
- Joe Orton <jorton@redhat>
Diffstat (limited to 'ext/standard/tests/time')
-rw-r--r-- | ext/standard/tests/time/001.phpt | 2 |
1 files changed, 1 insertions, 1 deletions
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"; |