From 9ae982053f526d7368a7b619181119525475511f Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Sat, 23 Apr 2011 00:34:56 +0000 Subject: Convert the rest of the test suite to use the lldbutil.get_description() utility function. llvm-svn: 130041 --- lldb/test/python_api/target/TestTargetAPI.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'lldb/test/python_api/target/TestTargetAPI.py') diff --git a/lldb/test/python_api/target/TestTargetAPI.py b/lldb/test/python_api/target/TestTargetAPI.py index fd278e242e2..a112de5de28 100644 --- a/lldb/test/python_api/target/TestTargetAPI.py +++ b/lldb/test/python_api/target/TestTargetAPI.py @@ -189,13 +189,11 @@ class TargetAPITestCase(TestBase): #print "symbol1:", symbol1 #print "symbol2:", symbol2 - stream1 = lldb.SBStream() - symbol1.GetDescription(stream1) - stream2 = lldb.SBStream() - symbol2.GetDescription(stream2) - - self.expect(stream1.GetData(), "The two addresses should resolve to the same symbol", exe=False, - startstr = stream2.GetData()) + from lldbutil import get_description + desc1 = get_description(symbol1) + desc2 = get_description(symbol2) + self.assertTrue(desc1 and desc2 and desc1 == desc2, + "The two addresses should resolve to the same symbol") if __name__ == '__main__': -- cgit v1.2.3