diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2018-12-17 21:40:37 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2018-12-17 21:40:37 +0000 |
commit | cba1b00c422991ca4d1642f0af6385275dc69f2e (patch) | |
tree | 6b5299070567e16e39e96ece6d41c92c62171d86 | |
parent | 6b5e0b7b2b2fd48d5f9d17e7f136f6fc093c9492 (diff) | |
download | bcm5719-llvm-cba1b00c422991ca4d1642f0af6385275dc69f2e.tar.gz bcm5719-llvm-cba1b00c422991ca4d1642f0af6385275dc69f2e.zip |
[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
-rw-r--r-- | lldb/lit/Suite/lldbtest.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/lit/Suite/lldbtest.py b/lldb/lit/Suite/lldbtest.py index edabaac554e..16b0b2ed7e1 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' % |