From 20d7a682ab4252b3839fdb68d12cd8c7cc28b5fa Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Fri, 1 Nov 2002 12:12:40 +0000 Subject: [PATCH] update test #This test fails for me. I expanded the test output and checked the function. #The only way to fix this behaviour would be to store the last result in a #global value and fetch the time again in case the newer value is less the #the older value. --- ext/standard/tests/time/001.phpt | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/ext/standard/tests/time/001.phpt b/ext/standard/tests/time/001.phpt index 0f08cb21bb..2b8217e6b3 100644 --- a/ext/standard/tests/time/001.phpt +++ b/ext/standard/tests/time/001.phpt @@ -1,24 +1,32 @@ --TEST-- microtime() function ---POST-- ---GET-- +--SKIPIF-- + --FILE-- $last_t || ($time == $last_t && $micro > $last_m)) { + $passed++; + } else { + $failed++; + $result .= sprintf('%06d', $i).": $time $micro < $last_t $last_m\n"; + } + $last_m = $micro; + $last_t = $time; } -echo "Passed: ".$passed."\n"; -echo "Failed: ".$failed."\n"; +echo "Passed: $passed\n"; +echo "Failed: $failed\n"; +echo $result; ?> ---EXPECT-- -Passed: 100000 -Failed: 0 \ No newline at end of file +--EXPECTREGEX-- +Passed: 10+ +Failed: 0 -- 2.50.1