[Lldb-commits] [PATCH] D66975: [lit] Print exit code in for unresolved (lldb)tests.
Jonas Devlieghere via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Aug 29 14:22:44 PDT 2019
JDevlieghere created this revision.
JDevlieghere added reviewers: friss, aprantl.
Herald added a project: LLDB.
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
@@ -104,8 +104,8 @@
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, ''
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 651 bytes
Desc: not available
More information about the lldb-commits