forked from OSchip/llvm-project
[lit] Print exit code in for unresolved (lldb)tests.
A test is marked unresolved when we're unable to find PASSED or FAILED in the dotest output. Usually this is because we crashed and when that happens the exit code can give a clue as to why. This patch adds the exit code to the lit output to make it easier to investigate those issues. Differential revision: https://reviews.llvm.org/D66975 llvm-svn: 370413
This commit is contained in:
parent
7bd0a78fae
commit
86955ecd6a
|
@ -104,8 +104,8 @@ class LLDBTest(TestFormat):
|
|||
|
||||
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' %
|
||||
(passing_test_line, out, err))
|
||||
msg = ('Unable to find %r in dotest output (exit code %d):\n\n%s%s'
|
||||
% (passing_test_line, exitCode, out, err))
|
||||
return lit.Test.UNRESOLVED, msg
|
||||
|
||||
return lit.Test.PASS, ''
|
||||
|
|
Loading…
Reference in New Issue