Fix a crash (_wrap_SBDebugger_SetInputFileHandle -> PyString_AsString) running the test suite.
Also modify the boundary condition test case SBDebugger.DispatchInput(None) to be wrapped inside a try-except clause for now. llvm-svn: 162228
This commit is contained in:
@@ -32,7 +32,10 @@ def fuzz_obj(obj):
|
||||
obj.GetSourceManager()
|
||||
obj.SetSelectedTarget(lldb.SBTarget())
|
||||
obj.SetCurrentPlatformSDKRoot("tmp/sdk-root")
|
||||
obj.DispatchInput(None, 0)
|
||||
try:
|
||||
obj.DispatchInput(None)
|
||||
except Exception:
|
||||
pass
|
||||
obj.DispatchInputInterrupt()
|
||||
obj.DispatchInputEndOfFile()
|
||||
obj.PushInputReader(lldb.SBInputReader())
|
||||
|
||||
Reference in New Issue
Block a user