summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2010-11-03 00:09:38 +0000
committerJohnny Chen <johnny.chen@apple.com>2010-11-03 00:09:38 +0000
commitb2d4f7f20eb29c1271ad0249f74e6da82c766118 (patch)
tree1ce099276d9e40aa7c42b46194f48637370140f9
parenta3bb142db6e581e3fb23472c9324e66c3648cb76 (diff)
downloadbcm5719-llvm-b2d4f7f20eb29c1271ad0249f74e6da82c766118.tar.gz
bcm5719-llvm-b2d4f7f20eb29c1271ad0249f74e6da82c766118.zip
Add more comment for dumpSessionInfo(self) method.
llvm-svn: 118129
-rw-r--r--lldb/test/lldbtest.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/test/lldbtest.py b/lldb/test/lldbtest.py
index 2ee319ee1a5..62b8374ee88 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
OpenPOWER on IntegriCloud