- Aug 31, 2010
-
-
Johnny Chen authored
process being debugged in the TestBase.tearDown() instead of letting it continue and finish. llvm-svn: 112556
-
Johnny Chen authored
of os command to lldbtest.TestBase.system() method. llvm-svn: 112547
-
Johnny Chen authored
them from test cases instead of issuing "make clean; make ..." os command. llvm-svn: 112542
-
- Aug 30, 2010
-
-
Johnny Chen authored
taken from Python 2.7's subprocess.check_output() convenience function. The purpose of this method is to run the os command with arguments and return its output as a byte string. Modified hello_world/TestHelloWorld.py to have two test cases: o test_with_dsym_and_run_command o test_with_dwarf_and_process_launch_api with the dsym case conditioned on sys.platform.startswith("darwin") being true. The two cases utilize the system() method to invoke "make clean; make MAKE_DYSM=YES/NO" to prepare for the appropriate debugging format before running the test logic. llvm-svn: 112530
-
- Aug 28, 2010
-
-
Johnny Chen authored
breakpoint by FileSpec and line number and exercises some FileSpec APIs. Also, RUN_STOPPED is a bad assert name, RUN_SUCCEEDED is better. llvm-svn: 112327
-
- Aug 27, 2010
-
-
Johnny Chen authored
and process. Added comment within the file about issues of using LaunchProcess of SBTarget to launch a process (rdar://problem/8364687). llvm-svn: 112276
-
Johnny Chen authored
Added a utility method to TestBase class to debug print an SBValue object. llvm-svn: 112247
-
- Aug 26, 2010
-
-
Johnny Chen authored
llvm-svn: 112223
-
Johnny Chen authored
with the only exception of launching the process from SBTarget which is under investigation. o build-swig-Python.sh should also checks the timestamp of ${swig_input_file} for update eligibility. Also, once an update is in order, there's no need to check the remaining header files for timestamps. o Coaches swig to treat StopReason as an int type, instead of a C++ class. llvm-svn: 112210
-
Johnny Chen authored
llvm-svn: 112103
-
Johnny Chen authored
o SBDebugger.GetCurrentTarget() o SBTarget.GetProcess() o SBProcess.GetAddressByteSize() in order to make sure that, indeed, 64-bit, followed by 32-bit processes have been launched. Added invoke() method to TestBase to factor in the tracing logic in one place. This method allows an object to call a method with no arg reflectively. llvm-svn: 112102
-
- Aug 25, 2010
-
-
Johnny Chen authored
there's no point matching further sub strings; the expect() already fails. Also cleaned up the assert message for VARIABLES_DISPLAYED_CORRECTLY. llvm-svn: 112074
-
Johnny Chen authored
mechanism seems to work fine on my MacBook Pro in some limited test cases. The default maxLaunchCount and timeWait variables used in the scheme can be overridden by the env variables LLDB_MAX_LAUNCH_COUNT and LLDB_TIME_WAIT. llvm-svn: 112071
-
Johnny Chen authored
llvm-svn: 112000
-
Johnny Chen authored
currently fails: rdar://problem/8349784. Forgot to check in lldbtest.py in the previous commit r111958. llvm-svn: 111975
-
- Aug 23, 2010
-
-
Johnny Chen authored
which, defaults to False, and if set to True, will trace lldb command execution and result. Added "-t" command option to the test driver dotest.py which sets the LLDB_COMMAND_TRACE environment variable to "YES" and as a result always turns on command tracing regardless of the 'trace' keyword argument to runCmd()/expect(). llvm-svn: 111811
-
- Aug 20, 2010
-
-
Johnny Chen authored
And converted the rest of the test cases to runCmd()/expect(). llvm-svn: 111677
-
Johnny Chen authored
llvm-svn: 111671
-
Johnny Chen authored
llvm-svn: 111666
-
Johnny Chen authored
llvm-svn: 111658
-
Johnny Chen authored
llvm-svn: 111652
-
Johnny Chen authored
llvm-svn: 111587
-
Johnny Chen authored
its return status into lldbtest.TestBase.runCmd(); and runCmd() in combination with checking the output against matching substrings (including startswith) into lldbtest.TestBase.expect(). TestUnsignedTypes.py is refactored to use the abstracted APIs. Other test cases to be modified later. llvm-svn: 111572
-
- Aug 17, 2010
-
-
Johnny Chen authored
llvm-svn: 111294
-
- Aug 16, 2010
-
-
Johnny Chen authored
cleanup before finish into the test fixture in lldbtest.TestBase.tearDown(). Derivatives of TestBase is responsible for setting self.runStarted to True if an inferior process has been started. llvm-svn: 111188
-
- Aug 10, 2010
-
-
Johnny Chen authored
Added a generic message generator to the lldbtest.py base module. llvm-svn: 110625
-
Johnny Chen authored
the TestBase. Modified TestArrayTypes.py to use the assert messages. Other files to follow. llvm-svn: 110611
-
- Aug 07, 2010
-
-
Johnny Chen authored
llvm-svn: 110497
-
- Aug 06, 2010
-
-
Johnny Chen authored
backported to Python 2.3+. Some of the features desired include better verbose reporting in unittest2.TextTestRunner and decorator support for skipping tests and expected failures. http://pypi.python.org/pypi/unittest2 o Modified the existing .py tests to use unittest2 and decorated TestSTL.test_step_into_stl(), which is known to always fail currently, with @unittest2.expectedFailure. llvm-svn: 110397
-
- Aug 05, 2010
-
-
Johnny Chen authored
because unittest.main() calls sys.exit() before returning. Fixed by registering an exit handler for this situation. llvm-svn: 110379
-
- Jul 03, 2010
-
-
Johnny Chen authored
lldbtest.TestBase. Also removed some debug prints. llvm-svn: 107575
-
Johnny Chen authored
module lldbtest.py and refactored the existing test cases to derive from the abstract base class lldbtest.TestBase. MOdified the test driver (dotest.py and dotest.pl) to set up additional PYTHONPATH component for locating the lldbtest module, which sits in the same directory. llvm-svn: 107563
-