Skip to content

Commit 790b0b1

Browse files
committed
Fix handling of succeeding XFAIL tests
Due to a typo in commit e1151c9[1], succeeding XFAIL test without an EXPECTF or EXPECTREGEX section have been reported reported as passed instead of warned. [1] <http://git.php.net/?p=php-src.git;a=commit;h=e1151c9549cf5a7235c1609019f79bbb1bbcdbea>
1 parent 1ed9ebd commit 790b0b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

run-tests.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2657,7 +2657,7 @@ function run_test($php, $file, $env)
26572657
if (isset($section_text['XFAIL'])) {
26582658
$warn = true;
26592659
$info = " (warn: XFAIL section but test passes)";
2660-
} if (isset($section_text['XLEAK'])) {
2660+
} elseif (isset($section_text['XLEAK'])) {
26612661
$warn = true;
26622662
$info = " (warn: XLEAK section but test passes)";
26632663
} else {

0 commit comments

Comments
 (0)