summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2010-10-15 16:22:10 +0000
committerJohnny Chen <johnny.chen@apple.com>2010-10-15 16:22:10 +0000
commitfd64df4f9280e43195ad772e607fa6c6a205b728 (patch)
treee65c5dd69b8e9c80e3857795132e2006d1198277
parentab254f5da4354a141025472f5e26b631c55a9be5 (diff)
downloadbcm5719-llvm-fd64df4f9280e43195ad772e607fa6c6a205b728.tar.gz
bcm5719-llvm-fd64df4f9280e43195ad772e607fa6c6a205b728.zip
Add more comments.
llvm-svn: 116583
-rw-r--r--lldb/test/lldbtest.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/lldb/test/lldbtest.py b/lldb/test/lldbtest.py
index 3954b56049a..6a5faa94ba3 100644
--- a/lldb/test/lldbtest.py
+++ b/lldb/test/lldbtest.py
@@ -411,7 +411,9 @@ class TestBase(unittest2.TestCase):
self.old_stderr = sys.stderr
sys.stderr = self.session
- # Optimistically set self.failed to False initially.
+ # Optimistically set self.__failed__ to False initially. If the test
+ # failed, the session info (self.session) is then dumped into a session
+ # specific file for diagnosis.
self.__failed__ = False
def setTearDownCleanup(self, dictionary=None):
@@ -422,7 +424,8 @@ class TestBase(unittest2.TestCase):
"""Callback invoked when we (the test case instance) failed."""
self.__failed__ = True
with recording(self, False) as sbuf:
- # False because there's no need to write "FAIL" to the stderr again.
+ # False because there's no need to write "FAIL" to the stderr twice.
+ # Once by the Python unittest framework, and a second time by us.
print >> sbuf, "FAIL"
def dumpSessionInfo(self):
OpenPOWER on IntegriCloud