hanchenye-llvm-project/lldb/test/python_api
Zachary Turner 045fde58d1 Fixes a number of issue related to test portability on Windows.
99% of this CL is simply moving calls to "import pexpect" to a more
narrow scope - i.e. the function that actually runs a particular
test.  This way the test suite can run on Windows, which doesn't have
pexpect, and the individual tests that use pexpect can be disabled on
a platform-specific basis.

Additionally, this CL fixes a few other cases of non-portability.
Notably, using "ps" to get the command line, and os.uname() to
determine the architecture don't work on Windows.  Finally, this
also adds a stubbed out builder_win32 module.

The full test suite runs correctly on Windows after this CL, although
there is still some work remaining on the C++ side to fix one-shot
script commands from LLDB (e.g. script print "foo"), which currently
deadlock.

Reviewed by: Todd Fiala

Differential Revision: http://reviews.llvm.org/D4573

llvm-svn: 213343
2014-07-18 01:02:02 +00:00
..
breakpoint If a breakpoint gets deleted, any SBBreakpoints representing that 2014-07-02 18:44:43 +00:00
debugger Massive test suite cleanup to stop everyone from manually having to compute "mydir" inside each test case. 2013-12-10 23:19:29 +00:00
default-constructor I removed SetCallback from the Python API's since it wasn't actually useful, and added SetScriptCallbackFunction, 2014-04-03 00:50:56 +00:00
disassemble-raw-data Massive test suite cleanup to stop everyone from manually having to compute "mydir" inside each test case. 2013-12-10 23:19:29 +00:00
event Correctly set the working directory when launching processes for both local and remote targets. 2013-12-13 19:18:59 +00:00
findvalue_duplist <rdar://problem/15960553> 2014-02-18 23:48:11 +00:00
formatters Massive test suite cleanup to stop everyone from manually having to compute "mydir" inside each test case. 2013-12-10 23:19:29 +00:00
frame Correctly set the working directory when launching processes for both local and remote targets. 2013-12-13 19:18:59 +00:00
function_symbol Correctly set the working directory when launching processes for both local and remote targets. 2013-12-13 19:18:59 +00:00
hello_world Correctly set the working directory when launching processes for both local and remote targets. 2013-12-13 19:18:59 +00:00
interpreter Fixes a number of issue related to test portability on Windows. 2014-07-18 01:02:02 +00:00
lldbutil Correctly set the working directory when launching processes for both local and remote targets. 2013-12-13 19:18:59 +00:00
module_section Massive test suite cleanup to stop everyone from manually having to compute "mydir" inside each test case. 2013-12-10 23:19:29 +00:00
objc_type Correctly set the working directory when launching processes for both local and remote targets. 2013-12-13 19:18:59 +00:00
process Correctly set the working directory when launching processes for both local and remote targets. 2013-12-13 19:18:59 +00:00
rdar-12481949 Massive test suite cleanup to stop everyone from manually having to compute "mydir" inside each test case. 2013-12-10 23:19:29 +00:00
sbdata Fixes a number of issue related to test portability on Windows. 2014-07-18 01:02:02 +00:00
signals Part 2 of SBUnitSignals check-in. 2014-06-23 20:56:48 +00:00
symbol-context Correctly set the working directory when launching processes for both local and remote targets. 2013-12-13 19:18:59 +00:00
target Marked TestTargetAPI.test_launch_new_process_and_redirect_stdout_with_* as XFAIL on Darwin. 2014-07-09 21:24:41 +00:00
thread Fix malloc thread step-out test on FreeBSD 2014-03-07 19:02:20 +00:00
type Add support for inspecting enum members. 2014-06-02 20:55:29 +00:00
value Correctly set the working directory when launching processes for both local and remote targets. 2013-12-13 19:18:59 +00:00
watchpoint Enabled TestSetWatchlocation.py on Linux. 2014-02-28 17:28:44 +00:00
.categories