Revert 143359 and modify the test case to not include non-valid c identifier character.

llvm-svn: 143372
This commit is contained in:
Johnny Chen 2011-10-31 22:22:06 +00:00
parent fc8feb8137
commit 8e9383d69c
2 changed files with 9 additions and 2 deletions

View File

@ -1376,6 +1376,13 @@ CommandInterpreter::HandleCommand (const char *command_line,
}
}
break;
default:
result.AppendErrorWithFormat ("unknown command shorthand suffix: '%s'\n",
suffix.c_str());
result.SetStatus (eReturnStatusFailed);
return false;
}
}
}

View File

@ -27,13 +27,13 @@ class CommandRegexTestCase(TestBase):
# 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:')