summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2019-08-05 11:35:17 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2019-08-05 11:38:47 +0200
commit790b0b109ad269b7367e3720d056530a86fa7123 (patch)
treebc87e59c7a4a1babaf845deb218e2f356ca5257f
parent1ed9ebdea558a7ae265dcc460cedd2cbbaa48efc (diff)
downloadphp-git-790b0b109ad269b7367e3720d056530a86fa7123.tar.gz
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>
-rwxr-xr-xrun-tests.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/run-tests.php b/run-tests.php
index f467b74b25..2104ab2a64 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -2657,7 +2657,7 @@ COMMAND $cmd
if (isset($section_text['XFAIL'])) {
$warn = true;
$info = " (warn: XFAIL section but test passes)";
- } if (isset($section_text['XLEAK'])) {
+ } elseif (isset($section_text['XLEAK'])) {
$warn = true;
$info = " (warn: XLEAK section but test passes)";
} else {