[Lldb-commits] [lldb] r149656 - /lldb/trunk/test/functionalities/completion/TestCompletion.py
Johnny Chen
johnny.chen at apple.com
Thu Feb 2 17:14:42 PST 2012
Author: johnny
Date: Thu Feb 2 19:14:42 2012
New Revision: 149656
URL: http://llvm.org/viewvc/llvm-project?rev=149656&view=rev
Log:
Add a couple of simple completion test cases for 'target ' and 'target va'.
Modified:
lldb/trunk/test/functionalities/completion/TestCompletion.py
Modified: lldb/trunk/test/functionalities/completion/TestCompletion.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/completion/TestCompletion.py?rev=149656&r1=149655&r2=149656&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/completion/TestCompletion.py (original)
+++ lldb/trunk/test/functionalities/completion/TestCompletion.py Thu Feb 2 19:14:42 2012
@@ -102,6 +102,17 @@
'target.process.thread.step-avoid-regexp',
'target.process.thread.trace-thread'])
+ def test_target_space(self):
+ """Test that 'target ' completes to ['Available completions:', 'create', 'delete', 'list',
+ 'modules', 'select', 'stop-hook', 'variable']."""
+ self.complete_from_to('target ',
+ ['Available completions:', 'create', 'delete', 'list',
+ 'modules', 'select', 'stop-hook', 'variable'])
+
+ def test_target_va(self):
+ """Test that 'target va' completes to 'target variable '."""
+ self.complete_from_to('target va', 'target variable ')
+
def complete_from_to(self, str_input, patterns):
"""Test that the completion mechanism completes str_input to patterns,
where patterns could be a pattern-string or a list of pattern-strings"""
More information about the lldb-commits
mailing list