History log of /external/lldb/test/python_api/lldbutil/iter/TestRegistersIterator.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8be36596a02e57eb3b187f03a760c532d6d95571 24-Jul-2013 Ed Maste <emaste@freebsd.org> test_iter_registers is expected to fail on FreeBSD

Added comment to llvm.org/pr14600 that it fails on FreeBSD in the same way
as Linux.


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@187070 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/lldbutil/iter/TestRegistersIterator.py
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/lldbutil/iter/TestRegistersIterator.py
0f9930b4f0604fd5c4c49480d01ea230eff66e3d 24-Jan-2013 Daniel Malea <daniel.malea@intel.com> Marking test cases with @expectedFailureLinux as per recently opened bugs
- PR 15038: missing wide char support on Linux
- PR 14600 - Exception state registers not supported on Linux
- PR 15039: SBProcess.GetSTDOUT() returns an empty buffer
- PR 15037: stop-hooks sometimes fail to fire on Linux



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@173363 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/lldbutil/iter/TestRegistersIterator.py
a9f92b15f939ae4c4d17c2a61e03477a73955b42 27-Sep-2011 Johnny Chen <johnny.chen@apple.com> Make the assignment of TestBase.mydir more portable.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@140640 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/lldbutil/iter/TestRegistersIterator.py
0fb0bcc9d4e951145e1b8c783652224c09b23af4 04-Aug-2011 Greg Clayton <gclayton@apple.com> Cleaned up the SBType.h file to not include internal headers and reorganized
the SBType implementation classes.

Fixed LLDB core and the test suite to not use deprecated SBValue APIs.

Added a few new APIs to SBValue:

int64_t
SBValue::GetValueAsSigned(int64_t fail_value=0);

uint64_t
SBValue::GetValueAsUnsigned(uint64_t fail_value=0)




git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@136829 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/lldbutil/iter/TestRegistersIterator.py
82ccf4033d09dc7002637ddc70a3ffcc518a58c9 30-Jul-2011 Johnny Chen <johnny.chen@apple.com> Add a @benchmarks_test decorator for test method we want to categorize as benchmarks test.
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.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@136553 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/lldbutil/iter/TestRegistersIterator.py
425b0cf93f509ba63346e56654322b9d9bc91d60 12-Jul-2011 Johnny Chen <johnny.chen@apple.com> Passing in os.ctermid() as the arg for SBTarget.Launch(...) for stdin_path, stdout_path, and stderr_path
is just wrong and resulted in the inferior's output getting mixed into the GDB remote communication's
log file. Change all test cases to not pass os.ctermid() and either use SBTarget.LaunchSimple() or
SBTarget.Launch() and pass None as stdin_path/stdout_path/srderr_path to use a pseudo terminal.

rdar://problem/9716499 program output is getting mixed into the GDB remote communications


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@134940 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/lldbutil/iter/TestRegistersIterator.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/lldbutil/iter/TestRegistersIterator.py
2077f0d1ea42e1941387b101e61db01a73d5ee08 18-May-2011 Johnny Chen <johnny.chen@apple.com> Add truth value testing to those lldb Python objects with the IsValid() method definitions.
object.__nonzero__(self) is called to implement truth value testing and the built-in operation bool(),
via a simple delegation to self.IsValid().

Change tests under python_api/lldbutil to utilize this mechanism.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@131494 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/lldbutil/iter/TestRegistersIterator.py
a79a21c64268ccadb34cbb1084fb70849034afdd 16-May-2011 Johnny Chen <johnny.chen@apple.com> Add implementation of built-in function len() for those lldb containers with
unambiguous iteration support. So that we could, for example:

...

REGs = lldbutil.get_GPRs(frame)
print "Number of general purpose registers: %d" % len(REGs)
for reg in REGs:
print "%s => %s" %(reg.GetName(), reg.GetValue())

...


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@131418 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/lldbutil/iter/TestRegistersIterator.py
abb3b2d796da9e081cd545b710d23c514489f895 12-May-2011 Johnny Chen <johnny.chen@apple.com> Add two utility functions:

o get_parent_frame(frame)
o get_args_as_string(frame)

to lldbutil.py and create TestFrameUtils.py to exercise the utils.
Plus re-arrange the test/python_api/lldbutil to have three directories
for testing iteration, process stack traces, and the just added frame utils.


git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@131213 91177308-0d34-0410-b5e6-96231b3b80d8
/external/lldb/test/python_api/lldbutil/iter/TestRegistersIterator.py