[Lldb-commits] [lldb] r370413 - [lit] Print exit code in for unresolved (lldb)tests.
Jonas Devlieghere via lldb-commits
lldb-commits at lists.llvm.org
Thu Aug 29 15:02:28 PDT 2019
Author: jdevlieghere
Date: Thu Aug 29 15:02:28 2019
New Revision: 370413
URL: http://llvm.org/viewvc/llvm-project?rev=370413&view=rev
Log:
[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
Modified:
lldb/trunk/lit/Suite/lldbtest.py
Modified: lldb/trunk/lit/Suite/lldbtest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lit/Suite/lldbtest.py?rev=370413&r1=370412&r2=370413&view=diff
==============================================================================
--- lldb/trunk/lit/Suite/lldbtest.py (original)
+++ lldb/trunk/lit/Suite/lldbtest.py Thu Aug 29 15:02:28 2019
@@ -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, ''
More information about the lldb-commits
mailing list