[Lldb-commits] [lldb] r369249 - [lldb][NFC] Add a few more completion tests to increase test coverage
Raphael Isemann via lldb-commits
lldb-commits at lists.llvm.org
Mon Aug 19 03:46:38 PDT 2019
Author: teemperor
Date: Mon Aug 19 03:46:38 2019
New Revision: 369249
URL: http://llvm.org/viewvc/llvm-project?rev=369249&view=rev
Log:
[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).
Modified:
lldb/trunk/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py
Modified: lldb/trunk/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py?rev=369249&r1=369248&r2=369249&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py Mon Aug 19 03:46:38 2019
@@ -84,6 +84,29 @@ class CommandLineCompletionTestCase(Test
'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):
More information about the lldb-commits
mailing list