Start adding API calls to the invalid SB API object after default construction.

It should not crash lldb.

This checkin adds calls for SBAddress.

llvm-svn: 133778
This commit is contained in:
Johnny Chen
2011-06-24 00:06:53 +00:00
parent 1aae619933
commit 4d1f660ace
2 changed files with 15 additions and 0 deletions

View File

@@ -22,6 +22,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_address
sb_address.fuzz_obj(obj)
@python_api_test
def test_SBBlock(self):