- Nov 16, 2011
-
-
Johnny Chen authored
llvm-svn: 144848
-
Johnny Chen authored
This helps track down possible zombie processes. llvm-svn: 144846
-
- Oct 19, 2011
-
-
Johnny Chen authored
child=None, child_prompt=None, use_cmd_api=False By default, expect a pexpect spawned child and child prompt to be supplied (use_cmd_api=False). If use_cmd_api is true, ignore the child and child prompt and use self.runCmd() to run the hooks one by one. Modify existing client to reflect the change. llvm-svn: 142532
-
Johnny Chen authored
llvm-svn: 142469
-
- Oct 07, 2011
-
-
Johnny Chen authored
If we spawn an lldb process for test (via pexpect), do not load the init file unless told otherwise. Set up self.lldbOption to be "--no-lldbibit" unless env variable NO_LLDBIBIT is defined and equals "NO". Also add "-nx" to gdb spawned. llvm-svn: 141384
-
- Sep 30, 2011
-
-
Johnny Chen authored
Add a keyword argument 'endstr' to TestBase.expect() method to assert that the output will end with 'endstr'. Add TestBase.switch_to_thread_with_stop_reason(stop_reason) to select the thread with the stop reason = 'stop_reason' as the current thread. o TestWatchLocation.py: Modified to switch to the stopped thread with stop reason = watchpoint and to evaluate an expression with expected output for stronger assertion. llvm-svn: 140890
-
- Sep 15, 2011
-
-
Johnny Chen authored
llvm-svn: 139847
-
- Aug 26, 2011
-
-
Johnny Chen authored
built locally from the source tree. This is distinguished from self.lldbExec, which can be used by test/benchmarks to measure the performances against other debuggers. You can use environment variable LLDB_EXEC to specify self.lldbExec to the dotest.py test driver, otherwise it is going to be populated with self.lldbHere. Modify the regular tests under test dir, i.e., not test/benchmarks, to use self.lldbHere. Also modify the benchmarks tests to use self.lldbHere when it needs an 'lldb' executable with debug info to do the performance measurements. llvm-svn: 138608
-
- Aug 24, 2011
-
-
Johnny Chen authored
llvm-svn: 138466
-
- Aug 19, 2011
-
-
Johnny Chen authored
the exception to get more stack trace information. llvm-svn: 138021
-
Johnny Chen authored
Add a decorator for marking clang only expectedFailure. Use it for the test_step_over_3_times_with_dsym/dwarf() test cases in TestThreadAPI.py by decorating it with @expectedFailureClang. Example: @expectedFailureClang @python_api_test def test_step_over_3_times_with_dwarf(self): """Test Python SBThread.StepOver() API.""" # We build a different executable than the default buildDwarf() does. d = {'CXX_SOURCES': 'main2.cpp', 'EXE': self.exe_name} self.buildDwarf(dictionary=d) self.setTearDownCleanup(dictionary=d) self.step_over_3_times(self.exe_name) llvm-svn: 138019
-
- Aug 17, 2011
-
-
Johnny Chen authored
llvm-svn: 137776
-
- Aug 16, 2011
-
-
Johnny Chen authored
... File "/Volumes/data/lldb/svn/trunk/test/lldbtest.py", line 243, in __init__ self.session = test.session if test else None AttributeError: 'StdCXXDisassembleTestCase' object has no attribute 'session' llvm-svn: 137724
-
Johnny Chen authored
llvm-svn: 137696
-
Johnny Chen authored
due to incorrect skip-logic. llvm-svn: 137678
-
- Aug 12, 2011
-
-
Johnny Chen authored
Add TestInferiorChanged.py to test that lldb reloads the inferior after it was changed during the debug session. First, main.c causes a crash, the inferior then gets re-built with main2.c which is not crashing. Add Base.cleanup(self, dictionary=None) for platform specfic way to do cleanup after build. This plugin method is used by the above test case to cleanup the main.c build before rebuild for main2.c. llvm-svn: 137500
-
- Aug 11, 2011
-
-
Johnny Chen authored
When a benchmarks test fails, the re-run command should include the '+b' option instead of the '-t' option. llvm-svn: 137285
-
- Aug 05, 2011
-
-
Johnny Chen authored
Add the rich comparison methods (__eq__, __ne__) to SBType, too. o lldbtest.py: Add debug utility method TestBase.DebugSBType(). o test/python_api/type: Add tests for exercising SBType/SBTypeList API, including the SBTarget.FindTypes(type_name) API which returns a SBTypeList matching the type_name. llvm-svn: 136975
-
- Aug 03, 2011
-
-
Johnny Chen authored
Modify lldbbench.py so that lldbtest.line_number() utility function is available to BenchBase client as just line_number(), and modify lldbtest.py so that self.lldbExec (the full path for the 'lldb' executable) is available to BenchBase client as well. An example run of the test case on my MacBook Pro running Lion: 1: test_compare_lldb_to_gdb (TestRepeatedExprs.RepeatedExprsCase) Test repeated expressions with lldb vs. gdb. ... lldb_avg: 0.204339 gdb_avg: 0.205721 lldb_avg/gdb_avg: 0.993284 ok llvm-svn: 136740
-
- Aug 01, 2011
-
-
Johnny Chen authored
Modify the example TestRepeatedExprs.py to use BenchBase, instead. llvm-svn: 136649
-
Johnny Chen authored
llvm-svn: 136641
-
Johnny Chen authored
while its API clients remain unchanged. The new lldbtest.Base class is to capture common behaviors when working with the test driver to accomplish things. The clients of lldbtest.Base can be lldb command line and api tests as well as other generic tests like a benchmark test. llvm-svn: 136636
-
- Jul 30, 2011
-
-
Johnny Chen authored
The test driver now takes an option "+b" which enables to run just the benchmarks tests. By default, tests decorated with the @benchmarks_test decorator do not get run. Add an example benchmarks test directory which contains nothing for the time being, just to demonstrate the @benchmarks_test concept. For example, $ ./dotest.py -v benchmarks ... ---------------------------------------------------------------------- Collected 2 tests 1: test_with_gdb (TestRepeatedExprs.RepeatedExprssCase) Test repeated expressions with gdb. ... skipped 'benchmarks tests' 2: test_with_lldb (TestRepeatedExprs.RepeatedExprssCase) Test repeated expressions with lldb. ... skipped 'benchmarks tests' ---------------------------------------------------------------------- Ran 2 tests in 0.047s OK (skipped=2) $ ./dotest.py -v +b benchmarks ... ---------------------------------------------------------------------- Collected 2 tests 1: test_with_gdb (TestRepeatedExprs.RepeatedExprssCase) Test repeated expressions with gdb. ... running test_with_gdb benchmarks result for test_with_gdb ok 2: test_with_lldb (TestRepeatedExprs.RepeatedExprssCase) Test repeated expressions with lldb. ... running test_with_lldb benchmarks result for test_with_lldb ok ---------------------------------------------------------------------- Ran 2 tests in 0.270s OK Also mark some Python API tests which are missing the @python_api_test decorator. llvm-svn: 136553
-
- Jul 16, 2011
-
-
Johnny Chen authored
o GetChildAtIndex, and o GetValueForExpressionPath llvm-svn: 135315
-
- Jul 11, 2011
-
-
Johnny Chen authored
before issuing API calls to find the global variable and to get its value. rdar://problem/9700873 has been updated to reflect the latest status. The dwarf case now does not seg fault if the inferior is not started; instead, for dwarf case, the value retrieved from the global variable is None. llvm-svn: 134909
-
- Jun 27, 2011
-
-
Johnny Chen authored
Test "print object" where another thread blocks the print object from making progress. Set a breakpoint on the line in my_pthread_routine. Then switch threads to the main thread, and do print the lock_me object. Since that will try to get the lock already gotten by my_pthread_routime thread, it will have to switch to running all threads, and that should then succeed. llvm-svn: 133933
-
- Jun 24, 2011
-
-
Johnny Chen authored
Assign the test method name to self.testMethodName. This can be useful for the test directory (see test/types for a good example) which houses a bunch of executables compiled from different source files. The default build action is to create a.out as the binary executable, which can confuse the module cacheing mechanism and result in the debugger getting a stale image as the target to be debugged, and chaos ensues. o AbstractBase.py, TestThreadAPI.py: Use self.testMethodName to our advantage. o TestLoadUnload.py: Add expected failure marker to test case test_modules_search_paths(). llvm-svn: 133768
-
- Jun 21, 2011
-
-
Johnny Chen authored
if not already specified by the test driver (via ./dotest -w). Remove the AbstractBase.setUp() method definition when/if we find out the cause of the failures if no delays are inserted between these test cases. llvm-svn: 133495
-
- Jun 20, 2011
-
-
Peter Collingbourne authored
llvm-svn: 133457
-
- Jun 15, 2011
-
-
Johnny Chen authored
remove the self.runStarted attribute since the automatic shutdown of processes associated with the targets are now performed automatically. llvm-svn: 133092
-
Johnny Chen authored
bool SBDebugger::DeleteTarget(lldb::SBTarget &target); which is used in the test tearDown() phase to cleanup the debugger's target list so that it won't grow larger and larger as test cases are executed. This is also a good opportunity to get rid of the arcane requirement that test cases exercising the Python API must assign the process object to self.process so that it gets shutdown gracefully. Instead, the shutdown of the process associated with each target is now being now automatically. Also get rid of an API from SBTarget class: SBTarget::DeleteTargetFromList(lldb_private::TargetList *list); llvm-svn: 133091
-
- Jun 14, 2011
-
-
Johnny Chen authored
It was introduced to work around some debugger infrastructure bug which has long since been fixed. llvm-svn: 132951
-
- Jun 06, 2011
-
-
Johnny Chen authored
llvm-svn: 132692
-
- Jun 01, 2011
-
-
Johnny Chen authored
inside a try-except block in case the test is not invoked through the dotest.py test driver. llvm-svn: 132372
-
Johnny Chen authored
llvm-svn: 132367
-
- May 28, 2011
-
-
Johnny Chen authored
llvm-svn: 132232
-
Johnny Chen authored
Remove an unnecessary __import__() function call. llvm-svn: 132231
-
- May 25, 2011
-
-
Johnny Chen authored
llvm-svn: 132072
-
- May 07, 2011
-
-
Johnny Chen authored
llvm-svn: 131035
-
- May 06, 2011
-
-
Johnny Chen authored
llvm-svn: 131011
-