From b2d4f7f20eb29c1271ad0249f74e6da82c766118 Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Wed, 3 Nov 2010 00:09:38 +0000 Subject: [PATCH] Add more comment for dumpSessionInfo(self) method. llvm-svn: 118129 --- lldb/test/lldbtest.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lldb/test/lldbtest.py b/lldb/test/lldbtest.py index 2ee319ee1a56..62b8374ee883 100644 --- a/lldb/test/lldbtest.py +++ b/lldb/test/lldbtest.py @@ -517,6 +517,13 @@ class TestBase(unittest2.TestCase): 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