summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/help/TestHelp.py
diff options
context:
space:
mode:
authorEnrico Granata <egranata@apple.com>2016-03-15 01:43:00 +0000
committerEnrico Granata <egranata@apple.com>2016-03-15 01:43:00 +0000
commitcdbac995518f20653bc89cc992592ee510ac0873 (patch)
tree73b843aab39b83f1cf0a508cf7b0dbe4d3416da8 /lldb/packages/Python/lldbsuite/test/help/TestHelp.py
parentdbe8d4f339164ca62fa733bd53c35ca0e9e8c7d6 (diff)
downloadbcm5719-llvm-cdbac995518f20653bc89cc992592ee510ac0873.tar.gz
bcm5719-llvm-cdbac995518f20653bc89cc992592ee510ac0873.zip
Add some test coverage for the changes in alias help
llvm-svn: 263520
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/help/TestHelp.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/help/TestHelp.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/help/TestHelp.py b/lldb/packages/Python/lldbsuite/test/help/TestHelp.py
index 4bfbe6ef188..92bb9fa5f21 100644
--- a/lldb/packages/Python/lldbsuite/test/help/TestHelp.py
+++ b/lldb/packages/Python/lldbsuite/test/help/TestHelp.py
@@ -167,6 +167,24 @@ class HelpCommandTestCase(TestBase):
'variable +--'])
@no_debug_info_test
+ def test_help_po_hides_options(self):
+ """Test that 'help po' does not show all the options for expression"""
+ self.expect("help po",
+ substrs = ['--show-all-children', '--object-description'], matching=False)
+
+ @no_debug_info_test
+ def test_help_run_hides_options(self):
+ """Test that 'help run' does not show all the options for process launch"""
+ self.expect("help run",
+ substrs = ['--arch', '--environment'], matching=False)
+
+ @no_debug_info_test
+ def test_help_next_shows_options(self):
+ """Test that 'help next' shows all the options for thread step-over"""
+ self.expect("help next",
+ substrs = ['--python-class','--run-mode'], matching=True)
+
+ @no_debug_info_test
def test_help_provides_alternatives(self):
"""Test that help on commands that don't exist provides information on additional help avenues"""
self.expect("help thisisnotadebuggercommand",
OpenPOWER on IntegriCloud