From 790b0b109ad269b7367e3720d056530a86fa7123 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Mon, 5 Aug 2019 11:35:17 +0200 Subject: [PATCH] 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] --- run-tests.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.40.0