summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/function_symbol
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/function_symbol
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/function_symbol')
-rw-r--r--lldb/test/python_api/function_symbol/TestDisasmAPI.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/lldb/test/python_api/function_symbol/TestDisasmAPI.py b/lldb/test/python_api/function_symbol/TestDisasmAPI.py
index 0f36cd854c3..662860564e1 100644
--- a/lldb/test/python_api/function_symbol/TestDisasmAPI.py
+++ b/lldb/test/python_api/function_symbol/TestDisasmAPI.py
@@ -109,13 +109,11 @@ class DisasmAPITestCase(TestBase):
#ea2 = function.GetEndAddress()
#print "ea2:", ea2
- stream1 = lldb.SBStream()
- sa1.GetDescription(stream1)
- stream2 = lldb.SBStream()
- sa2.GetDescription(stream2)
-
- self.expect(stream1.GetData(), "The two starting addresses should be the same", exe=False,
- startstr = stream2.GetData())
+ from lldbutil import get_description
+ desc1 = get_description(sa1)
+ desc2 = get_description(sa2)
+ self.assertTrue(desc1 and desc2 and desc1 == desc2,
+ "The two starting addresses should be the same")
if __name__ == '__main__':
OpenPOWER on IntegriCloud