summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-04-29 19:03:02 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-04-29 19:03:02 +0000
commit0f023fa4af9e35105054fbe609093ecb7eec79b5 (patch)
tree533798449fbb9d5a2ef8222b84dab1ce6cbda5a6 /lldb/test/python_api
parent080d98d3b2c40b19de5f6728e18f59b8de295223 (diff)
downloadbcm5719-llvm-0f023fa4af9e35105054fbe609093ecb7eec79b5.tar.gz
bcm5719-llvm-0f023fa4af9e35105054fbe609093ecb7eec79b5.zip
Add the Python rich comparison methods for SBBreakpoint, where GetID() returns
the breakpoint ID and provides the semantics needed for '==' and '!='. And modify LLDBIteratorTestCase.lldb_iter_2() to use '==' between two SBBreakpoint's. llvm-svn: 130531
Diffstat (limited to 'lldb/test/python_api')
-rw-r--r--lldb/test/python_api/lldbutil/TestLLDBIterator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/test/python_api/lldbutil/TestLLDBIterator.py b/lldb/test/python_api/lldbutil/TestLLDBIterator.py
index 890c01881b6..0b2b3dd289d 100644
--- a/lldb/test/python_api/lldbutil/TestLLDBIterator.py
+++ b/lldb/test/python_api/lldbutil/TestLLDBIterator.py
@@ -92,7 +92,7 @@ class LLDBIteratorTestCase(TestBase):
if self.TraceOn():
print "yours[%d]='%s'" % (i, get_description(yours[i]))
print "mine[%d]='%s'" % (i, get_description(mine[i]))
- self.assertTrue(yours[i].GetID() == mine[i].GetID(),
+ self.assertTrue(yours[i] == mine[i],
"ID of yours[{0}] and mine[{0}] matches".format(i))
def lldb_iter_3(self):
OpenPOWER on IntegriCloud