You've already forked llvm-project
mirror of
https://github.com/encounter/llvm-project.git
synced 2026-03-30 11:27:19 -07:00
c5c0247d98
llvm-svn: 146919
23 lines
538 B
Python
23 lines
538 B
Python
"""
|
|
Fuzz tests an object after the default construction to make sure it does not crash lldb.
|
|
"""
|
|
|
|
import sys
|
|
import lldb
|
|
|
|
def fuzz_obj(obj):
|
|
obj.GetCString()
|
|
obj.Fail()
|
|
obj.Success()
|
|
obj.GetError()
|
|
obj.GetType()
|
|
obj.SetError(5, lldb.eErrorTypeGeneric)
|
|
obj.SetErrorToErrno()
|
|
obj.SetErrorToGenericError()
|
|
obj.SetErrorString("xyz")
|
|
obj.SetErrorString(None)
|
|
obj.SetErrorStringWithFormat("%s!", "error")
|
|
obj.SetErrorStringWithFormat(None)
|
|
obj.GetDescription(lldb.SBStream())
|
|
obj.Clear()
|