summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/symbol-context/TestSymbolContext.py
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-04-23 00:34:56 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-04-23 00:34:56 +0000
commit9ae982053f526d7368a7b619181119525475511f (patch)
tree856dee5c474f1e5a988d0d61bd3000c668217eba /lldb/test/python_api/symbol-context/TestSymbolContext.py
parentaa3d6242cfb3a21922f7ec13cbd5b65303a51f80 (diff)
downloadbcm5719-llvm-9ae982053f526d7368a7b619181119525475511f.tar.gz
bcm5719-llvm-9ae982053f526d7368a7b619181119525475511f.zip
Convert the rest of the test suite to use the lldbutil.get_description() utility function.
llvm-svn: 130041
Diffstat (limited to 'lldb/test/python_api/symbol-context/TestSymbolContext.py')
-rw-r--r--lldb/test/python_api/symbol-context/TestSymbolContext.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/lldb/test/python_api/symbol-context/TestSymbolContext.py b/lldb/test/python_api/symbol-context/TestSymbolContext.py
index a1e1a806f05..6213490aea9 100644
--- a/lldb/test/python_api/symbol-context/TestSymbolContext.py
+++ b/lldb/test/python_api/symbol-context/TestSymbolContext.py
@@ -65,9 +65,8 @@ class SymbolContextAPITestCase(TestBase):
# Get the description of this module.
module = context.GetModule()
- stream = lldb.SBStream()
- module.GetDescription(stream)
- self.expect(stream.GetData(), "The module should match", exe=False,
+ desc = lldbutil.get_description(module)
+ self.expect(desc, "The module should match", exe=False,
substrs = [os.path.join(self.mydir, 'a.out')])
compileUnit = context.GetCompileUnit()
OpenPOWER on IntegriCloud