Skip to content

Commit e7e89de

Browse files
kamil-tekielanikic
authored andcommitted
CLEAN can be borked too
1 parent 218fd03 commit e7e89de

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

run-tests.php

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2502,7 +2502,21 @@ function run_test(string $php, $file, array $env): string
25022502
if (!$no_clean) {
25032503
$extra = !IS_WINDOWS ?
25042504
"unset REQUEST_METHOD; unset QUERY_STRING; unset PATH_TRANSLATED; unset SCRIPT_FILENAME; unset REQUEST_METHOD;" : "";
2505-
system_with_timeout("$extra $php $pass_options $extra_options -q $orig_ini_settings $no_file_cache \"$test_clean\"", $env);
2505+
$output = system_with_timeout("$extra $php $pass_options $extra_options -q $orig_ini_settings $no_file_cache \"$test_clean\"", $env);
2506+
2507+
if ($output) {
2508+
show_result("BORK", $output, $tested_file, 'reason: invalid output from CLEAN', $temp_filenames);
2509+
$PHP_FAILED_TESTS['BORKED'][] = [
2510+
'name' => $file,
2511+
'test_name' => '',
2512+
'output' => '',
2513+
'diff' => '',
2514+
'info' => "$output [$file]",
2515+
];
2516+
2517+
$junit->markTestAs('BORK', $shortname, $tested, null, $output);
2518+
return 'BORKED';
2519+
}
25062520
}
25072521

25082522
if (!$cfg['keep']['clean']) {

0 commit comments

Comments
 (0)