From: Christoph M. Becker Date: Mon, 5 Aug 2019 09:35:17 +0000 (+0200) Subject: Fix handling of succeeding XFAIL tests X-Git-Tag: php-7.4.0beta2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=790b0b109ad269b7367e3720d056530a86fa7123;p=php 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] --- 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 {