summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-10-03 22:30:56 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-10-03 22:30:56 +0000
commit3dc26e839c2458a897f2372e162f5c20b959900b (patch)
treedeb279992dac7316357f2e8bd5481623530675f6 /lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py
parent46b664605977790293c588158db06fb0ddfe4a74 (diff)
downloadbcm5719-llvm-3dc26e839c2458a897f2372e162f5c20b959900b.tar.gz
bcm5719-llvm-3dc26e839c2458a897f2372e162f5c20b959900b.zip
Add SBSection API to the fuzz testing.
llvm-svn: 141039
Diffstat (limited to 'lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py')
-rw-r--r--lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py b/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py
index b46a9fa7bea..2340a6130a7 100644
--- a/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py
+++ b/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py
@@ -228,6 +228,16 @@ class APIDefaultConstructorTestCase(TestBase):
sb_process.fuzz_obj(obj)
@python_api_test
+ def test_SBSection(self):
+ obj = lldb.SBSection()
+ if self.TraceOn():
+ print obj
+ self.assertFalse(obj)
+ # Do fuzz testing on the invalid obj, it should not crash lldb.
+ import sb_section
+ sb_section.fuzz_obj(obj)
+
+ @python_api_test
def test_SBStream(self):
"""SBStream object is valid after default construction."""
obj = lldb.SBStream()
OpenPOWER on IntegriCloud