[Lldb-commits] [lldb] r118129 - /lldb/trunk/test/lldbtest.py

Johnny Chen johnny.chen at apple.com
Tue Nov 2 17:09:38 PDT 2010


Author: johnny
Date: Tue Nov  2 19:09:38 2010
New Revision: 118129

URL: http://llvm.org/viewvc/llvm-project?rev=118129&view=rev
Log:
Add more comment for dumpSessionInfo(self) method.

Modified:
    lldb/trunk/test/lldbtest.py

Modified: lldb/trunk/test/lldbtest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbtest.py?rev=118129&r1=118128&r2=118129&view=diff
==============================================================================
--- lldb/trunk/test/lldbtest.py (original)
+++ lldb/trunk/test/lldbtest.py Tue Nov  2 19:09:38 2010
@@ -517,6 +517,13 @@
         Dump the debugger interactions leading to a test error/failure.  This
         allows for more convenient postmortem analysis.
         """
+
+        # We are here because self.tearDown() detected that this test instance
+        # either errored or failed.  The lldb.test_result singleton contains
+        # two lists (erros and failures) which get populated by the unittest
+        # framework.  Look over there for stack trace information.
+        #
+        # See http://docs.python.org/library/unittest.html#unittest.TestResult.
         for test, err in lldb.test_result.errors:
             if test is self:
                 print >> self.session, err





More information about the lldb-commits mailing list