summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-06-28 19:07:02 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-06-28 19:07:02 +0000
commit6f306a48592be29c0fdaff98cd9c47c3e6eb343e (patch)
tree5ce6f9d8c9802c7ab884cb70be440aabf2369abb /lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py
parentb10d72f019736a9944c851f11f8995485c5ccc86 (diff)
downloadbcm5719-llvm-6f306a48592be29c0fdaff98cd9c47c3e6eb343e.tar.gz
bcm5719-llvm-6f306a48592be29c0fdaff98cd9c47c3e6eb343e.zip
Add fuzz calls for SBInstruction and SBInstructionList.
llvm-svn: 134020
Diffstat (limited to 'lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py')
-rw-r--r--lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py b/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py
index a5717c50bcb..df8b42eb70f 100644
--- a/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py
+++ b/lldb/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py
@@ -171,6 +171,9 @@ class APIDefaultConstructorTestCase(TestBase):
if self.TraceOn():
print obj
self.assertFalse(obj)
+ # Do fuzz testing on the invalid obj, it should not crash lldb.
+ import sb_instruction
+ sb_instruction.fuzz_obj(obj)
@python_api_test
def test_SBInstructionList(self):
@@ -178,6 +181,9 @@ class APIDefaultConstructorTestCase(TestBase):
if self.TraceOn():
print obj
self.assertFalse(obj)
+ # Do fuzz testing on the invalid obj, it should not crash lldb.
+ import sb_instructionlist
+ sb_instructionlist.fuzz_obj(obj)
@python_api_test
def test_SBLineEntry(self):
OpenPOWER on IntegriCloud