History log of /external/lldb/test/python_api/thread/TestThreadAPI.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
6bc4dcdfbcdfa455299d2123011b82a77351ee72 15-May-2013 Daniel Malea <daniel.malea@intel.com> Clean up linux test decorators and add links to known bugs
- s/skipOnLinux/skipIfLinux/ to match style of every other decorator
- linkify bugizilla/PR numbers in comments

No intended change in functionality.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@181913 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/thread/TestThreadAPI.py
166b89f089d6bec5bb9dd40470a4dc951ffc9daa 19-Mar-2013 Greg Clayton <gclayton@apple.com> Fixed incorrect python that was trying to validate that we got a valid lldb.SBThread object by checking to see if it is equal to "None".

This test is incorrect as functions that return lldb.SBThread objects never return None, they just return lldb.SBThread objects that contain invalid opaque classes.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@177416 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/thread/TestThreadAPI.py
40c9d75f2f6402227fed4e0a25daf18b683cb5e7 23-Nov-2012 Daniel Malea <daniel.malea@intel.com> Update test status on Linux
- add decorators @expectedFailLinux and @skipOnLinux
- skip/mark xfail cases due to open bugzillas # 14323, 14416, 14423, 14424, 14425, 14426

Patch by Ashok Thirumurthi!



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@168529 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/thread/TestThreadAPI.py
21b1984e161b0cadee331d32bfd721eccfdf4b1f 06-Apr-2012 Johnny Chen <johnny.chen@apple.com> Second batch of adding @dsym_test/@dwarf_test decorators to existing test cases.
Plus some minor cleanup of test method names.
Third and final batch is coming.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@154197 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/thread/TestThreadAPI.py
65f4fb01ed41075a3efe9d2b5a337e5a8fe7f006 19-Dec-2011 Johnny Chen <johnny.chen@apple.com> Fix Python docstring for SBThread.GetStopDescription().


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@146890 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/thread/TestThreadAPI.py
88b6ac22884d6e9b2fb0d7ae91901beb9ca369cb 26-Sep-2011 Johnny Chen <johnny.chen@apple.com> Remove the @expectedFailureClang custom decorator for indicating clang-specific test failures.
It has been fixed on the lldb side to compensate for bad debug info (line table information).


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@140550 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/thread/TestThreadAPI.py
65040cbce499d67cf9b92fd845b3cfb84efe98f0 19-Aug-2011 Johnny Chen <johnny.chen@apple.com> 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)


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@138019 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/thread/TestThreadAPI.py
b7e27f4ed399c04362e2f40ba1d800846b819077 24-Jun-2011 Johnny Chen <johnny.chen@apple.com> o lldbtest.py:

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().


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@133768 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/thread/TestThreadAPI.py
4119be53531a9b5bd1082029188d950f142498a4 23-Jun-2011 Johnny Chen <johnny.chen@apple.com> For now, use 'b.out' compiled from main2.cpp as the executable name for test_run_to_address_with_dsym/dwarf()
to distinguish between other test cases which use 'a.out' compiled from main.cpp.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@133764 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/thread/TestThreadAPI.py
3d8ae4681b81b42a404ad77a231c6f743040e644 16-Jun-2011 Johnny Chen <johnny.chen@apple.com> The extra burden for the Python API test case to assign its process object 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.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@133097 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/thread/TestThreadAPI.py
7cd134af161941808cfe20eaf96d1b6ecf833e7e 26-May-2011 Johnny Chen <johnny.chen@apple.com> Comment change.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@132150 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/thread/TestThreadAPI.py
805fec7ec90a09b94bc4515fcac9b2b03bae153b 24-May-2011 Johnny Chen <johnny.chen@apple.com> Now that we have added a post-processing step for adding truth value testing to
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).


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@131970 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/thread/TestThreadAPI.py
244a86b02757dd54e924f0df7b99e5e7ab7f9124 19-Apr-2011 Johnny Chen <johnny.chen@apple.com> Converted to use SBProcess.LaunchSimple().
And use self.TraceOn() API.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@129797 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/thread/TestThreadAPI.py
8d237a26c7018c6c17da8d65019254cab3536f45 11-Mar-2011 Johnny Chen <johnny.chen@apple.com> Add test cases to exercise the SBThread.GetProcess() API. We launch the 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().


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@127444 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/thread/TestThreadAPI.py
4a384a97846bb3f0a56031d096fe57e7a551a26f 11-Mar-2011 Johnny Chen <johnny.chen@apple.com> Add a test case test_run_to_address() to exercise the SBThread.RunToAddress(lldb::addr_t addr) API.
The test itself is not working yet.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@127436 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/thread/TestThreadAPI.py
650fef9e5ac3ea99091b14b12ef5e4b7b73de7b0 10-Mar-2011 Johnny Chen <johnny.chen@apple.com> Add test cases to TestThreadAPI.py to exercise SBThread.StepOver() by stopping at a breakpoint,
doing three step-over's, then verifying that the correct source line number is reached.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@127432 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/thread/TestThreadAPI.py
d09dcacaf12e4a372fbc6d23a84dee78656668dd 10-Mar-2011 Johnny Chen <johnny.chen@apple.com> Test cleanup. Check for the full caller symbol of malloc -- b(int).


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@127421 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/thread/TestThreadAPI.py
69af39d7e7c1988caf027956a6af5f17c55b5534 10-Mar-2011 Johnny Chen <johnny.chen@apple.com> Add test cases for Python SBThread.StepOut() API by stepping out of a malloc call where the call site is at function b().
Verifies that after the thread.StepOut(), we are at the correct line within function b.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@127374 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/thread/TestThreadAPI.py
586a3e6ad55b210791d451d1b5bb024d2a29091b 07-Mar-2011 Johnny Chen <johnny.chen@apple.com> Add TestThreadAPI.py file to house the Python SBThread API test cases.
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)


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@127173 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/thread/TestThreadAPI.py