mirror of
https://github.com/php/php-src.git
synced 2024-12-20 23:39:46 +08:00
Improve test usleep_basic by inlining its output
Closes GH-4703.
This commit is contained in:
parent
803dc6b8f2
commit
1792adebfd
@ -27,17 +27,16 @@ usleep($sleeptime);
|
||||
$time_end = microtime(true);
|
||||
$time = ($time_end - $time_start) * 1000 * 1000;
|
||||
|
||||
echo "Thread slept for " . $time . " micro-seconds\n";
|
||||
$summary = "Thread slept for " . $time . " micro-seconds\n";
|
||||
|
||||
if ($time >= $sleeplow) {
|
||||
echo "TEST PASSED\n";
|
||||
echo "TEST PASSED: $summary";
|
||||
} else {
|
||||
echo "TEST FAILED\n";
|
||||
echo "TEST FAILED: $summary";
|
||||
}
|
||||
?>
|
||||
===DONE===
|
||||
--EXPECTF--
|
||||
*** Testing usleep() : basic functionality ***
|
||||
Thread slept for %f micro-seconds
|
||||
TEST PASSED
|
||||
TEST PASSED: Thread slept for %f micro-seconds
|
||||
===DONE===
|
||||
|
Loading…
Reference in New Issue
Block a user