Fixed bug #46845 Test expected to fail, but pass, don't cause error

This commit is contained in:
Zoe Slattery 2008-12-31 17:35:50 +00:00
parent 88f19296c9
commit 89743669d2

View file

@ -1786,9 +1786,15 @@ COMMAND $cmd
if (isset($old_php)) {
$php = $old_php;
}
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';
}
}
}
@ -1811,8 +1817,13 @@ COMMAND $cmd
}
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';
}
}
}