diff options
author | Raphael Isemann <teemperor@gmail.com> | 2019-08-19 10:46:38 +0000 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2019-08-19 10:46:38 +0000 |
commit | fb443746a89d26987e03d1828a9e0d274de6f78a (patch) | |
tree | 1510c689ea608410a1533633197ec910d787c9a2 | |
parent | d9a071c54be5531ea0b0b949a15497a9c7733755 (diff) | |
download | bcm5719-llvm-fb443746a89d26987e03d1828a9e0d274de6f78a.tar.gz bcm5719-llvm-fb443746a89d26987e03d1828a9e0d274de6f78a.zip |
[lldb][NFC] Add a few more completion tests to increase test coverage
These tests are mostly trying to reach the different completion functions
in CommandCompletions.cpp (::ArchitectureNames, ::DiskFiles, ::Modules).
llvm-svn: 369249
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py b/lldb/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py index 23d3d999ca2..f23bd5b3b70 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py @@ -84,6 +84,29 @@ class CommandLineCompletionTestCase(TestBase): 'process attach --con', 'process attach --continue ') + @skipIfFreeBSD # timing out on the FreeBSD buildbot + def test_process_launch_arch(self): + self.complete_from_to('process launch --arch ', + ['mips', + 'arm64']) + + @skipIfFreeBSD # timing out on the FreeBSD buildbot + def test_process_launch_arch_arm(self): + self.complete_from_to('process launch --arch arm', + ['arm64']) + + @skipIfFreeBSD # timing out on the FreeBSD buildbot + def test_target_symbols_add_shlib(self): + # Doesn't seem to work, but at least it shouldn't crash. + self.complete_from_to('target symbols add --shlib ', []) + + @skipIfFreeBSD # timing out on the FreeBSD buildbot + def test_log_file(self): + # Complete in our source directory which contains a 'main.cpp' file. + src_dir = os.path.dirname(os.path.realpath(__file__)) + '/' + self.complete_from_to('log enable lldb expr -f ' + src_dir, + ['main.cpp']) + # <rdar://problem/11052829> @skipIfFreeBSD # timing out on the FreeBSD buildbot def test_infinite_loop_while_completing(self): |