summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities/command_regex/TestCommandRegex.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/functionalities/command_regex/TestCommandRegex.py')
-rw-r--r--lldb/test/functionalities/command_regex/TestCommandRegex.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/lldb/test/functionalities/command_regex/TestCommandRegex.py b/lldb/test/functionalities/command_regex/TestCommandRegex.py
index eabbd192424..9571bb2eb56 100644
--- a/lldb/test/functionalities/command_regex/TestCommandRegex.py
+++ b/lldb/test/functionalities/command_regex/TestCommandRegex.py
@@ -37,6 +37,19 @@ class CommandRegexTestCase(TestBase):
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:')
+
+ # Try and incorrectly remove "Help__" using "command unalias" and verify we fail
+ child.sendline('command unalias Help__')
+ child.expect_exact("error: 'Help__' is not an alias, it is a debugger command which can be removed using the 'command delete' command")
+ child.expect_exact(prompt)
+
+ # Delete the regex command using "command delete"
+ child.sendline('command delete Help__')
+ child.expect_exact(prompt)
+ # Verify the command was removed
+ child.sendline('Help__')
+ child.expect_exact("error: 'Help__' is not a valid command")
+ child.expect_exact(prompt)
if __name__ == '__main__':
import atexit
OpenPOWER on IntegriCloud