[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
This commit is contained in:
Jonas Devlieghere 2018-12-17 21:40:37 +00:00
parent 6b5e0b7b2b
commit cba1b00c42
1 changed files with 4 additions and 0 deletions

View File

@ -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' %