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:
Johnny Chen
2012-08-20 21:16:02 +00:00
parent 784973b89e
commit 9b832fe40d
2 changed files with 13 additions and 3 deletions

View File

@@ -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())