[Lldb-commits] [PATCH] Fix AbbreviationsTestCase, AliasTestCase and HelpCommandTestCase tests after r226068

Ilia K ki.stfu at gmail.com
Tue Jan 20 07:00:17 PST 2015


Fix HelpCommandTestCase tests.

BTW, I don't have the write access yet. Could somebody commit it?


http://reviews.llvm.org/D7066

Files:
  test/functionalities/abbreviation/TestAbbreviations.py
  test/functionalities/alias/TestAliases.py
  test/help/TestHelp.py

Index: test/functionalities/abbreviation/TestAbbreviations.py
===================================================================
--- test/functionalities/abbreviation/TestAbbreviations.py
+++ test/functionalities/abbreviation/TestAbbreviations.py
@@ -34,7 +34,7 @@
 
         # 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: test/functionalities/alias/TestAliases.py
===================================================================
--- test/functionalities/alias/TestAliases.py
+++ test/functionalities/alias/TestAliases.py
@@ -114,10 +114,10 @@
         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: test/help/TestHelp.py
===================================================================
--- test/help/TestHelp.py
+++ test/help/TestHelp.py
@@ -16,18 +16,18 @@
     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 @@
             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:

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7066.18428.patch
Type: text/x-patch
Size: 2784 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150120/fc40c62d/attachment.bin>


More information about the lldb-commits mailing list