Fix help test cases after r226068
authorEd Maste <emaste@freebsd.org>
Tue, 20 Jan 2015 15:13:01 +0000 (15:13 +0000)
committerEd Maste <emaste@freebsd.org>
Tue, 20 Jan 2015 15:13:01 +0000 (15:13 +0000)
From: Ilia K <ki.stfu@gmail.com>
Differential Revision: http://reviews.llvm.org/D7066

llvm-svn: 226568

lldb/test/functionalities/abbreviation/TestAbbreviations.py
lldb/test/functionalities/alias/TestAliases.py
lldb/test/help/TestHelp.py

index 48956352137c8493e59c6110d89e667e19bdb607..142bd041ff431d274d58a2b0ab4c8fafd0ac21ae 100644 (file)
@@ -34,7 +34,7 @@ class AbbreviationsTestCase(TestBase):
 
         # Only one matching command: execute it.
         self.expect("h",
-                    startstr = "The following is a list of built-in, permanent debugger commands:")
+                    startstr = "Debugger commands:")
 
         # Execute cleanup function during test tear down
         def cleanup():
index a919a14cdcf462d4da8e292d4b5734fbdab06d45..b49fe5d7f808549b9a8e819feb5716cb7e80d08a 100644 (file)
@@ -114,10 +114,10 @@ class AliasTestCase(TestBase):
         self.expect ("help -a run",
                      substrs = [ "'run' is an abbreviation for 'process launch -c /bin/sh --'" ])
 
-        self.expect ("help -a",
+        self.expect ("help",
                      substrs = [ 'run', 'process launch -c /bin/sh' ])
 
-        self.expect ("help", matching=False,
+        self.expect ("help -a", matching=False,
                      substrs = [ "'run'", 'process launch -c /bin/sh' ])
 
         self.expect ("run",
index cf4ea120353fe3956d1586ba115c047846d3b9e7..00589e4ce568104e1ea7a0e6ced53414048a2f1f 100644 (file)
@@ -16,18 +16,18 @@ class HelpCommandTestCase(TestBase):
     def test_simplehelp(self):
         """A simple test of 'help' command and its output."""
         self.expect("help",
-            startstr = 'The following is a list of built-in, permanent debugger commands')
+            startstr = 'Debugger commands:')
 
-        self.expect("help", matching=False,
+        self.expect("help -a", matching=False,
                     substrs = ['next'])
         
-        self.expect("help -a", matching=True,
+        self.expect("help", matching=True,
                     substrs = ['next'])
     
     def test_help_on_help(self):
         """Testing the help on the help facility."""
         self.expect("help help", matching=True,
-                    substrs = ['--show-aliases',
+                    substrs = ['--hide-aliases',
                                '--hide-user-commands'])
 
     def version_number_string(self):
@@ -97,7 +97,7 @@ class HelpCommandTestCase(TestBase):
             substrs = ['error: 0 is out of range, valid values must be between'])
         # self.runCmd("settings set term-width 0")
         self.expect("help",
-            startstr = 'The following is a list of built-in, permanent debugger commands')
+            startstr = 'Debugger commands:')
 
     def test_help_breakpoint_set(self):
         """Test that 'help breakpoint set' does not print out redundant lines of: