From cba1b00c422991ca4d1642f0af6385275dc69f2e Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Mon, 17 Dec 2018 21:40:37 +0000 Subject: [PATCH] [lit] Detect unexpected passes in lldbtest. This patch will have lit report unexpected passes when dotest reports at least one XPASS and no failures. llvm-svn: 349401 --- lldb/lit/Suite/lldbtest.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lldb/lit/Suite/lldbtest.py b/lldb/lit/Suite/lldbtest.py index edabaac..16b0b2e 100644 --- a/lldb/lit/Suite/lldbtest.py +++ b/lldb/lit/Suite/lldbtest.py @@ -96,6 +96,10 @@ class LLDBTest(TestFormat): if exitCode: return lit.Test.FAIL, out + err + unexpected_test_line = 'XPASS' + if unexpected_test_line in out or unexpected_test_line in err: + return lit.Test.XPASS, '' + passing_test_line = 'RESULT: PASSED' if passing_test_line not in out and passing_test_line not in err: msg = ('Unable to find %r in dotest output:\n\n%s%s' % -- 2.7.4