summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-08-16 17:06:45 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-08-16 17:06:45 +0000
commitbfcf37f18bd10ff68d4f61e2312a45ceb251c316 (patch)
tree0a96cf31aeba858ac6b2a699bd7ee77e7de20f4a
parent45e50d8a0b9329c42c0ab3bed0e7f6b24c24ae89 (diff)
downloadbcm5719-llvm-bfcf37f18bd10ff68d4f61e2312a45ceb251c316.tar.gz
bcm5719-llvm-bfcf37f18bd10ff68d4f61e2312a45ceb251c316.zip
Fix the test suite error of:
... File "/Volumes/data/lldb/svn/trunk/test/lldbtest.py", line 243, in __init__ self.session = test.session if test else None AttributeError: 'StdCXXDisassembleTestCase' object has no attribute 'session' llvm-svn: 137724
-rw-r--r--lldb/test/lldbtest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/test/lldbtest.py b/lldb/test/lldbtest.py
index c8c1142f451..f3e3a057aa4 100644
--- a/lldb/test/lldbtest.py
+++ b/lldb/test/lldbtest.py
@@ -240,7 +240,7 @@ class recording(StringIO.StringIO):
def __init__(self, test, trace):
"""Create a StringIO instance; record the session obj and trace flag."""
StringIO.StringIO.__init__(self)
- self.session = test.session if test else None
+ self.session = getattr(test, "session", None) if test else None
self.trace = trace
def __enter__(self):
OpenPOWER on IntegriCloud