Add fuzz calls for SBModule and SBProcess.

llvm-svn: 134037
This commit is contained in:
Johnny Chen
2011-06-28 22:32:15 +00:00
parent d1c487cd00
commit a25bf6efb5
4 changed files with 70 additions and 2 deletions

View File

@@ -211,6 +211,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_module
sb_module.fuzz_obj(obj)
@python_api_test
def test_SBProcess(self):
@@ -218,6 +221,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_process
sb_process.fuzz_obj(obj)
@python_api_test
def test_SBStream(self):