Add some test coverage for the changes in alias help
authorEnrico Granata <egranata@apple.com>
Tue, 15 Mar 2016 01:43:00 +0000 (01:43 +0000)
committerEnrico Granata <egranata@apple.com>
Tue, 15 Mar 2016 01:43:00 +0000 (01:43 +0000)
llvm-svn: 263520

lldb/packages/Python/lldbsuite/test/help/TestHelp.py

index 4bfbe6e..92bb9fa 100644 (file)
@@ -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",