From 9b832fe40d24be8e58fe8cfc7199038085534870 Mon Sep 17 00:00:00 2001 From: Johnny Chen Date: Mon, 20 Aug 2012 21:16:02 +0000 Subject: 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 --- lldb/test/python_api/default-constructor/sb_debugger.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lldb/test/python_api/default-constructor/sb_debugger.py') diff --git a/lldb/test/python_api/default-constructor/sb_debugger.py b/lldb/test/python_api/default-constructor/sb_debugger.py index fb52c4877ce..91440b26ed9 100644 --- a/lldb/test/python_api/default-constructor/sb_debugger.py +++ b/lldb/test/python_api/default-constructor/sb_debugger.py @@ -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()) -- cgit v1.2.3