diff options
author | Zachary Turner <zturner@google.com> | 2016-01-13 21:21:49 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2016-01-13 21:21:49 +0000 |
commit | 19e2ea8fb621111684db21bb5e8f92474ca7d7f4 (patch) | |
tree | afda45d3d2addf6264df46387b0fe56de1f2fc55 /lldb/packages/Python/lldbsuite/test/functionalities/process_launch/main.cpp | |
parent | a4976b33d262cbbf2e813c22820fcaa4f90bd154 (diff) | |
download | bcm5719-llvm-19e2ea8fb621111684db21bb5e8f92474ca7d7f4.tar.gz bcm5719-llvm-19e2ea8fb621111684db21bb5e8f92474ca7d7f4.zip |
Fix TestProcessLaunch for Python 3.
There were a number of problems preventing this from working:
1. The SWIG typemaps for converting Python lists to and from C++
arrays were not updated for Python 3. So they were doing things
like PyString_Check instead of using the PythonString from
PythonDataObjects.
2. ProcessLauncherWindows was ignoring the environment completely.
So any test that involved launching an inferior with any kind
of environment variable would have failed.
3. The test itself was using process.GetSTDOUT(), which isn't
implemented on Windows. So this was changed to save the
value of the environment variable in a local variable and
have the debugger look at the value of the variable.
llvm-svn: 257669
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/process_launch/main.cpp')
0 files changed, 0 insertions, 0 deletions