llvm-project/lldb/packages/Python/lldbsuite/test
Pavel Labath 4da5a1dbab modify-python-lldb.py: clean up __iter__ and __len__ support
Summary:
Instead of modifying the swig-generated code, just add the appropriate
methods to the interface files in order to get the swig to do the
generation for us.

This is a straight-forward move from the python script to the interface
files. The single class which has nontrivial handling in the script
(SBModule) has been left for a separate patch.

For the cases where I did not find any tests exercising the
iteration/length methods (i.e., no tests failed after I stopped emitting
them), I tried to add basic tests for that functionality.

Reviewers: zturner, jingham, amccarth

Subscribers: jdoerfert, lldb-commits

Differential Revision: https://reviews.llvm.org/D60119

llvm-svn: 357572
2019-04-03 11:48:38 +00:00
..
android/platform Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
api Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
arm Don't run TestBreakpointThumbCodesection.py on darwin systems; 2019-01-17 22:26:25 +00:00
attic
benchmarks Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
driver/batch_mode [TestBatchMode] We already log this output to a file. 2019-03-13 02:47:51 +00:00
expression_command Fix for regression test, since we rely on the formatter for std::vector in the test we need a libc++ category. 2019-03-28 20:25:57 +00:00
functionalities Revert r357504, r357491, r357482 because of bot breakage. 2019-04-02 22:03:22 +00:00
help "help finish" tells you it is an alias. "help fin" doesn't. 2018-12-21 01:45:28 +00:00
issue_verification Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
lang Improve error handling for Clang module imports. 2019-03-19 15:38:26 +00:00
linux Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
logging Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
macosx Fix the swig typemap for "uint32_t *versions, uint32_t num_versions". 2019-03-28 19:25:54 +00:00
make Makefile.rules: Normalize use of trailing slashes in path variables. 2019-03-21 20:36:23 +00:00
plugins [LLDB] Unit tests basic support for OpenBSD 2018-06-04 11:59:18 +00:00
python_api modify-python-lldb.py: clean up __iter__ and __len__ support 2019-04-03 11:48:38 +00:00
quit Allow specifying an exit code for the 'quit' command 2018-07-11 17:18:01 +00:00
sample_test Fix whitespace in the python test suite. 2018-07-27 22:20:59 +00:00
settings [gdb-remote] Use lldb's portable Host::GetEnvironment() instead of getenv 2019-02-07 18:22:00 +00:00
source-manager testsuite: Fix TestCompDirSymLink and TestSourceManager on Linux with symlinked build dir 2019-02-21 09:05:27 +00:00
terminal [Python] Fix another batch of python 2/python 3 portability issues. 2019-03-13 00:48:29 +00:00
test_runner Bring Doxygen comment syntax in sync with LLVM coding style. 2019-03-11 17:09:29 +00:00
tools Simplify TestGdbRemoteRegisterState 2019-04-02 07:47:38 +00:00
types Make test sources compatible with android+libcxx+modules 2018-06-20 17:32:48 +00:00
warnings/uuid Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
.categories
Makefile
README-TestSuite Reflow readme 2018-12-17 21:18:12 +00:00
__init__.py
bench.py Remove obsolete file 2018-02-06 21:04:06 +00:00
concurrent_base.py Move "concurrent events" tests back into one folder 2018-02-27 02:01:30 +00:00
configuration.py Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
darwin_log.py Compile the LLDB tests out-of-tree. 2018-01-30 18:29:16 +00:00
decorators.py [lldb] [test] Mark failing tests XFAIL on NetBSD 2019-03-04 16:54:06 +00:00
dosep.py Fix buildbot regression by rL339929: NameError: global name 'test_directory' is not defined 2018-10-03 21:42:54 +00:00
dotest.py Use list comprehension instead of map/filter to prepare Python2/3 compat 2019-03-21 07:19:09 +00:00
dotest_args.py Allow use of self.filecheck in LLDB tests (c.f self.expect) 2018-09-18 19:31:47 +00:00
lldb_pylint_helper.py Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
lldbbench.py
lldbcurses.py
lldbdwarf.py Fix whitespace in the python test suite. 2018-07-27 22:20:59 +00:00
lldbinline.py [testsuite] Fix TestUnicodeString to work with Py2 and Py3. 2019-02-20 00:54:07 +00:00
lldbpexpect.py Fix flakyness in TestCommandScriptImmediateOutput 2019-04-02 09:45:40 +00:00
lldbplatform.py Initial patchset to get the testsuite running against armv7 and arm64 iOS devices. 2017-09-25 18:19:39 +00:00
lldbplatformutil.py Adapt some tests to work with PPC64le architecture 2018-02-28 20:57:26 +00:00
lldbtest.py Implement a better way of not passing the sanitizer environment on to tests. 2019-03-15 17:22:00 +00:00
lldbtest_config.py Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
lldbutil.py [PDB] Support PDB-backed expressions evaluation (+ fix stuck test) 2018-12-03 13:31:13 +00:00
lock.py
redo.py
test_categories.py [testsuite] Implement a category to skip libstdcxx tests 2018-07-10 20:37:24 +00:00
test_result.py Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00