forked from OSchip/llvm-project
Add more comment for dumpSessionInfo(self) method.
llvm-svn: 118129
This commit is contained in:
parent
a3bb142db6
commit
b2d4f7f20e
|
|
@ -517,6 +517,13 @@ class TestBase(unittest2.TestCase):
|
||||||
Dump the debugger interactions leading to a test error/failure. This
|
Dump the debugger interactions leading to a test error/failure. This
|
||||||
allows for more convenient postmortem analysis.
|
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:
|
for test, err in lldb.test_result.errors:
|
||||||
if test is self:
|
if test is self:
|
||||||
print >> self.session, err
|
print >> self.session, err
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue