Add SBSection API to the fuzz testing.
llvm-svn: 141039
This commit is contained in:
@@ -227,6 +227,16 @@ class APIDefaultConstructorTestCase(TestBase):
|
||||
import sb_process
|
||||
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."""
|
||||
|
||||
Reference in New Issue
Block a user