summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/default-constructor
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-08-05 22:23:26 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-08-05 22:23:26 +0000
commit76ea84eaf48e6647ead82c7b2835aae2f44e4b6a (patch)
treea98f092eff72f96b056a8bc5c1d363ba6b7ffd49 /lldb/test/python_api/default-constructor
parent8627ea91cb097f45894fa80fa04a3fb0100530db (diff)
downloadbcm5719-llvm-76ea84eaf48e6647ead82c7b2835aae2f44e4b6a.tar.gz
bcm5719-llvm-76ea84eaf48e6647ead82c7b2835aae2f44e4b6a.zip
On second thought, add the IsValid() method to SBTypeList, making it similar to SBSymbolContextList and SBValueList.
Modify the test suite accordingly. llvm-svn: 136990
Diffstat (limited to 'lldb/test/python_api/default-constructor')
-rw-r--r--lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py b/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py
index 69a45506110..c41fc16cbf2 100644
--- a/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py
+++ b/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py
@@ -313,13 +313,11 @@ class APIDefaultConstructorTestCase(TestBase):
@python_api_test
def test_SBTypeList(self):
+ """SBTypeList object is valid after default construction."""
obj = lldb.SBTypeList()
if self.TraceOn():
print obj
- # SBTypeList does not have IsValid() method defined. It's always valid
- # in a sense. So the Python's truth value testing in turn delegates to
- # __len__() method, which is defined for SBTypeList, and returns 0.
- self.assertFalse(obj)
+ self.assertTrue(obj)
@python_api_test
def test_SBValue(self):
OpenPOWER on IntegriCloud