summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/thread/TestThreadAPI.py
Commit message (Collapse)AuthorAgeFilesLines
* o lldbtest.py:Johnny Chen2011-06-231-31/+34
| | | | | | | | | | | | | | | | | | 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
* For now, use 'b.out' compiled from main2.cpp as the executable name for ↵Johnny Chen2011-06-231-11/+6
| | | | | | | | test_run_to_address_with_dsym/dwarf() to distinguish between other test cases which use 'a.out' compiled from main.cpp. llvm-svn: 133764
* The extra burden for the Python API test case to assign its process object ↵Johnny Chen2011-06-151-16/+16
| | | | | | | | | to self.process in order to have its process cleaned up (terminated) upon tearDown is gone for good. Let's simplify a bunch of Python API test cases. llvm-svn: 133097
* Comment change.Johnny Chen2011-05-261-1/+1
| | | | llvm-svn: 132150
* Now that we have added a post-processing step for adding truth value testing toJohnny Chen2011-05-241-12/+12
| | | | | | | those lldb objects which implement the IsValid() method, let's change the rest of the test suite to use the more compact truth value testing pattern (the Python way). llvm-svn: 131970
* Converted to use SBProcess.LaunchSimple().Johnny Chen2011-04-191-17/+8
| | | | | | And use self.TraceOn() API. llvm-svn: 129797
* Add test cases to exercise the SBThread.GetProcess() API. We launch the ↵Johnny Chen2011-03-111-2/+58
| | | | | | | | | | process using the SBTarget.Launch() API, stop at a breakpoint, get the stopped thread, and verify that the pid of the stopped thread's process is equal to the pid of the process returned by SBTarget.Launch(). llvm-svn: 127444
* Add a test case test_run_to_address() to exercise the ↵Johnny Chen2011-03-111-0/+53
| | | | | | | | SBThread.RunToAddress(lldb::addr_t addr) API. The test itself is not working yet. llvm-svn: 127436
* Add test cases to TestThreadAPI.py to exercise SBThread.StepOver() by ↵Johnny Chen2011-03-101-1/+60
| | | | | | | | stopping at a breakpoint, doing three step-over's, then verifying that the correct source line number is reached. llvm-svn: 127432
* Test cleanup. Check for the full caller symbol of malloc -- b(int).Johnny Chen2011-03-101-11/+11
| | | | llvm-svn: 127421
* Add test cases for Python SBThread.StepOut() API by stepping out of a malloc ↵Johnny Chen2011-03-091-1/+56
| | | | | | | | call where the call site is at function b(). Verifies that after the thread.StepOut(), we are at the correct line within function b. llvm-svn: 127374
* Add TestThreadAPI.py file to house the Python SBThread API test cases.Johnny Chen2011-03-071-0/+66
Currently it has only test cases for SBThread.GetStopDescription() API. Also modified lldb.swig to add typemap for (char *dst, size_t dst_len) which occurs for SBThread::GetStopDescription() C++ API. For Python scripting: # Due to the typemap magic (see lldb.swig), we pass in an (int)length to GetStopDescription # and expect to get a Python string as the result object! # The 100 is just an arbitrary number specifying the buffer size. stop_description = thread.GetStopDescription(100) llvm-svn: 127173
OpenPOWER on IntegriCloud