[Lldb-commits] [lldb] r143372 - in /lldb/trunk: source/Interpreter/CommandInterpreter.cpp test/functionalities/command_regex/TestCommandRegex.py

Johnny Chen johnny.chen at apple.com
Mon Oct 31 15:22:06 PDT 2011


Author: johnny
Date: Mon Oct 31 17:22:06 2011
New Revision: 143372

URL: http://llvm.org/viewvc/llvm-project?rev=143372&view=rev
Log:
Revert 143359 and modify the test case to not include non-valid c identifier character.

Modified:
    lldb/trunk/source/Interpreter/CommandInterpreter.cpp
    lldb/trunk/test/functionalities/command_regex/TestCommandRegex.py

Modified: lldb/trunk/source/Interpreter/CommandInterpreter.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Interpreter/CommandInterpreter.cpp?rev=143372&r1=143371&r2=143372&view=diff
==============================================================================
--- lldb/trunk/source/Interpreter/CommandInterpreter.cpp (original)
+++ lldb/trunk/source/Interpreter/CommandInterpreter.cpp Mon Oct 31 17:22:06 2011
@@ -1376,6 +1376,13 @@
                         }
                     }
                     break;
+
+                default:
+                    result.AppendErrorWithFormat ("unknown command shorthand suffix: '%s'\n", 
+                                                  suffix.c_str());
+                    result.SetStatus (eReturnStatusFailed);
+                    return false;
+        
                 }
             }
         }

Modified: lldb/trunk/test/functionalities/command_regex/TestCommandRegex.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/command_regex/TestCommandRegex.py?rev=143372&r1=143371&r2=143372&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/command_regex/TestCommandRegex.py (original)
+++ lldb/trunk/test/functionalities/command_regex/TestCommandRegex.py Mon Oct 31 17:22:06 2011
@@ -27,13 +27,13 @@
 
         # Substitute 'Help!' for 'help' using the 'commands regex' mechanism.
         child.expect_exact(prompt)
-        child.sendline("command regex 'Help!'")
+        child.sendline("command regex 'Help__'")
         child.expect_exact(regex_prompt)
         child.sendline('s/^$/help/')
         child.expect_exact(regex_prompt1)
         child.sendline('')
         # Help!
-        child.sendline('Help!')
+        child.sendline('Help__')
         # If we see the familiar 'help' output, the test is done.
         child.expect('The following is a list of built-in, permanent debugger commands:')
 





More information about the lldb-commits mailing list