From fb443746a89d26987e03d1828a9e0d274de6f78a Mon Sep 17 00:00:00 2001 From: Raphael Isemann Date: Mon, 19 Aug 2019 10:46:38 +0000 Subject: [PATCH] [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 --- .../functionalities/completion/TestCompletion.py | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py b/lldb/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py index 23d3d99..f23bd5b 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']) + # @skipIfFreeBSD # timing out on the FreeBSD buildbot def test_infinite_loop_while_completing(self): -- 2.7.4