diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-08-25 14:53:18 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-12-21 22:55:49 +0100 |
commit | 26e0d389bc630736dcb24405bd46e352fea36766 (patch) | |
tree | 78e523d331f13e5a52db22f81b5d82ab50d67f69 /run-tests.php | |
parent | cc23fcfca6f67e61eb123b87ea886f7aa9e22d45 (diff) | |
download | php-git-26e0d389bc630736dcb24405bd46e352fea36766.tar.gz |
Show slow SKIPIF sections as well
Diffstat (limited to 'run-tests.php')
-rwxr-xr-x | run-tests.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/run-tests.php b/run-tests.php index 3c1bf56149..a9f56f9484 100755 --- a/run-tests.php +++ b/run-tests.php @@ -2210,11 +2210,23 @@ TEST $file junit_start_timer($shortname); + $startTime = microtime(true); $output = system_with_timeout("$extra $php $pass_options $extra_options -q $orig_ini_settings $no_file_cache -d display_errors=1 -d display_startup_errors=0 \"$test_skipif\"", $env); $output = trim($output); + $time = microtime(true) - $startTime; junit_finish_timer($shortname); + if ($time > $slow_min_ms / 1000) { + $PHP_FAILED_TESTS['SLOW'][] = [ + 'name' => $file, + 'test_name' => 'SKIPIF of ' . $tested . " [$tested_file]", + 'output' => '', + 'diff' => '', + 'info' => $time, + ]; + } + if (!$cfg['keep']['skip']) { @unlink($test_skipif); } @@ -2524,7 +2536,7 @@ COMMAND $cmd if ($time >= $slow_min_ms * 1000000) { $PHP_FAILED_TESTS['SLOW'][] = [ 'name' => $file, - 'test_name' => (is_array($IN_REDIRECT) ? $IN_REDIRECT['via'] : '') . $tested . " [$tested_file]", + 'test_name' => $tested . " [$tested_file]", 'output' => '', 'diff' => '', 'info' => $time / 1000000000, |