summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/default-constructor
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2012-08-20 21:16:02 +0000
committerJohnny Chen <johnny.chen@apple.com>2012-08-20 21:16:02 +0000
commit9b832fe40d24be8e58fe8cfc7199038085534870 (patch)
treec79b768dd1e17e7ea7c8b74c05b9f6d1f44f7c0f /lldb/test/python_api/default-constructor
parent784973b89e382c2563b6c543f4e356033c66fbad (diff)
downloadbcm5719-llvm-9b832fe40d24be8e58fe8cfc7199038085534870.tar.gz
bcm5719-llvm-9b832fe40d24be8e58fe8cfc7199038085534870.zip
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
Diffstat (limited to 'lldb/test/python_api/default-constructor')
-rw-r--r--lldb/test/python_api/default-constructor/sb_debugger.py5
1 files changed, 4 insertions, 1 deletions
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())
OpenPOWER on IntegriCloud