From f886f669c3dc39153e0bcfaede652c1253b36011 Mon Sep 17 00:00:00 2001 From: Fabien Villepinte Date: Sat, 14 Sep 2019 08:38:33 +0200 Subject: [PATCH] Improve test usleep_basic by inlining its output --- ext/standard/tests/general_functions/usleep_basic.phpt | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ext/standard/tests/general_functions/usleep_basic.phpt b/ext/standard/tests/general_functions/usleep_basic.phpt index 17822376ad1a1..776d634ea47c5 100644 --- a/ext/standard/tests/general_functions/usleep_basic.phpt +++ b/ext/standard/tests/general_functions/usleep_basic.phpt @@ -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===