summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/default-constructor/sb_process.py
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-11-28 21:39:07 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-11-28 21:39:07 +0000
commit49cb85db64046f0030134cf4eac27b1dbe02cc2c (patch)
treebbc3506195df1c8be5a7154df3adc2a7c23ebb70 /lldb/test/python_api/default-constructor/sb_process.py
parentc086f0f91b775b7342ccea87a849474987c39b27 (diff)
downloadbcm5719-llvm-49cb85db64046f0030134cf4eac27b1dbe02cc2c.tar.gz
bcm5719-llvm-49cb85db64046f0030134cf4eac27b1dbe02cc2c.zip
SBProcess.PutSTDIN() needs to be properly typemapped when swigging,
so that we can do Python scripting like this: target = self.dbg.CreateTarget(self.exe) self.dbg.SetAsync(True) process = target.LaunchSimple(None, None, os.getcwd()) process.PutSTDIN("Line 1 Entered.\n") process.PutSTDIN("Line 2 Entered.\n") process.PutSTDIN("Line 3 Entered.\n") Add TestProcessIO.py to exercise the process IO API: PutSTDIN()/GetSTDOUT()/GetSTDERR(). llvm-svn: 145282
Diffstat (limited to 'lldb/test/python_api/default-constructor/sb_process.py')
-rw-r--r--lldb/test/python_api/default-constructor/sb_process.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/test/python_api/default-constructor/sb_process.py b/lldb/test/python_api/default-constructor/sb_process.py
index 4f892e57f14..f74df33ce10 100644
--- a/lldb/test/python_api/default-constructor/sb_process.py
+++ b/lldb/test/python_api/default-constructor/sb_process.py
@@ -8,7 +8,7 @@ import lldb
def fuzz_obj(obj):
obj.GetTarget()
obj.GetByteOrder()
- obj.PutSTDIN("my data", 7)
+ obj.PutSTDIN("my data")
obj.GetSTDOUT(6)
obj.GetSTDERR(6)
event = lldb.SBEvent()
OpenPOWER on IntegriCloud