Add some more test cases for the "watchpoint set" command.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@149324 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/functionalities/completion/TestCompletion.py b/test/functionalities/completion/TestCompletion.py
index 7906068..48a4a77 100644
--- a/test/functionalities/completion/TestCompletion.py
+++ b/test/functionalities/completion/TestCompletion.py
@@ -26,10 +26,22 @@
"""Test that 'frame variable -w ' completes to ['Available completions:', 'read', 'write', 'read_write']."""
self.complete_from_to('frame variable -w ', ['Available completions:', 'read', 'write', 'read_write'])
+ def test_watchpoint_set_dash_x(self):
+ """Test that 'watchpoint set -x' completes to 'watchpoint set -x '."""
+ self.complete_from_to('watchpoint set -x', 'watchpoint set -x ')
+
+ def test_watchpoint_set_dash_w_read_underbar(self):
+ """Test that 'watchpoint set -w read_' completes to 'watchpoint set -w read_write'."""
+ self.complete_from_to('watchpoint set -w read_', 'watchpoint set -w read_write')
+
def test_help_fi(self):
"""Test that 'help fi' completes to ['Available completions:', 'file', 'finish']."""
self.complete_from_to('help fi', ['Available completions:', 'file', 'finish'])
+ def test_help_watchpoint_s(self):
+ """Test that 'help watchpoint s' completes to 'help watchpoint set '."""
+ self.complete_from_to('help watchpoint s', 'help watchpoint set ')
+
def test_settings_append_target_er(self):
"""Test that 'settings append target.er' completes to 'settings append target.error-path'."""
self.complete_from_to('settings append target.er', 'settings append target.error-path')