mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-12-06 15:51:17 +00:00
Add fuzz calls to SBType, SBValue, and SBValueList.
Fixed crashes for SBValue fuzz calls. And change 'bool SBType::IsPointerType(void)' to 'bool SBType::IsAPointerType(void)' to avoid name collision with the static 'bool SBType::IsPointerType(void *)' function, which SWIG cannot handle. llvm-svn: 134096
This commit is contained in:
1 parent
1b8b9419ba
commit
6999f86617
7 files changed
+93
-8
No files matched your search
@@ -297,6 +297,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_type
|
||||
sb_type.fuzz_obj(obj)
|
||||
|
||||
@python_api_test
|
||||
def test_SBValue(self):
|
||||
@@ -304,6 +307,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_value
|
||||
sb_value.fuzz_obj(obj)
|
||||
|
||||
@python_api_test
|
||||
def test_SBValueList(self):
|
||||
@@ -311,6 +317,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_valuelist
|
||||
sb_valuelist.fuzz_obj(obj)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in new issue
Block a user