[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
issues.


Repository:
  rLLDB LLDB

https://reviews.llvm.org/D66975

Files:
  lldb/lit/Suite/lldbtest.py


Index: lldb/lit/Suite/lldbtest.py
===================================================================
--- lldb/lit/Suite/lldbtest.py
+++ lldb/lit/Suite/lldbtest.py
@@ -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...
Name: D66975.217974.patch
Type: text/x-patch
Size: 651 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20190829/2fbe8b56/attachment.bin>


More information about the lldb-commits mailing list