diff options
author | Zoe Slattery <zoe@php.net> | 2008-12-31 17:32:54 +0000 |
---|---|---|
committer | Zoe Slattery <zoe@php.net> | 2008-12-31 17:32:54 +0000 |
commit | 665ee392ef466ac5fe879782b8ac780f4afaf5be (patch) | |
tree | 49bc91d4e25da2d1d705820427e659e4b51333ed /run-tests.php | |
parent | 4c0a9448a950b676826ceeb1e203b62361a89dc3 (diff) | |
download | php-git-665ee392ef466ac5fe879782b8ac780f4afaf5be.tar.gz |
Fixed bug #46845 Test expected to fail, but pass, don't cause error
Diffstat (limited to 'run-tests.php')
-rwxr-xr-x | run-tests.php | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/run-tests.php b/run-tests.php index d8f0acc538..0c2ecb942d 100755 --- a/run-tests.php +++ b/run-tests.php @@ -1786,10 +1786,16 @@ COMMAND $cmd if (isset($old_php)) { $php = $old_php; } - if (!$leaked && !$failed_headers) { - show_result("PASS", $tested, $tested_file, '', $temp_filenames); - return 'PASSED'; - } + + if (!$leaked && !$failed_headers) { + if (isset($section_text['XFAIL'] )) { + $warn = true; + $info = " (warn: XFAIL section but test passes)"; + }else { + show_result("PASS", $tested, $tested_file, '', $temp_filenames); + return 'PASSED'; + } + } } } else { @@ -1810,9 +1816,14 @@ COMMAND $cmd $php = $old_php; } - if (!$leaked && !$failed_headers) { - show_result("PASS", $tested, $tested_file, '', $temp_filenames); - return 'PASSED'; + if (!$leaked && !$failed_headers) { + if (isset($section_text['XFAIL'] )) { + $warn = true; + $info = " (warn: XFAIL section but test passes)"; + }else { + show_result("PASS", $tested, $tested_file, '', $temp_filenames); + return 'PASSED'; + } } } |