mirror of
https://github.com/php/php-src.git
synced 2025-08-19 17:04:47 +02:00
Adds a 'reason' for skipping a test.
# See modifications on ext/xml/tests/007.phpt for example
This commit is contained in:
parent
d7648f440c
commit
7bb87c31f8
1 changed files with 4 additions and 1 deletions
|
@ -433,8 +433,11 @@ TEST $file
|
||||||
save_text($tmp_skipif, $section_text['SKIPIF']);
|
save_text($tmp_skipif, $section_text['SKIPIF']);
|
||||||
$output = `$php $tmp_skipif`;
|
$output = `$php $tmp_skipif`;
|
||||||
@unlink($tmp_skipif);
|
@unlink($tmp_skipif);
|
||||||
if (trim($output) == 'skip') {
|
if (ereg("^skip", trim($output))){
|
||||||
echo "SKIP $tested\n";
|
echo "SKIP $tested\n";
|
||||||
|
$reason = (ereg("^skip\s*(.+)$", trim($output))) ? ereg_replace("^skip\s*(.+)$", "\\1", trim($output)) : FALSE;
|
||||||
|
if($reason)
|
||||||
|
print "\treason: $reason\n";
|
||||||
return 'SKIPPED';
|
return 'SKIPPED';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue