diff options
Diffstat (limited to 'lldb/lit/Commands')
-rw-r--r-- | lldb/lit/Commands/command-regex-delete.test | 14 | ||||
-rw-r--r-- | lldb/lit/Commands/command-regex-unalias.test | 11 |
2 files changed, 25 insertions, 0 deletions
diff --git a/lldb/lit/Commands/command-regex-delete.test b/lldb/lit/Commands/command-regex-delete.test new file mode 100644 index 00000000000..04ac5d0b3ba --- /dev/null +++ b/lldb/lit/Commands/command-regex-delete.test @@ -0,0 +1,14 @@ +# Check basic functionality of command regex. +# RUN: %lldb -s %s 2>&1 | FileCheck %s + +command regex 'Help__' +# CHECK: Enter one of more sed substitution commands in the form +# We need to leave a new line after to end the regex. +s/^$/help/ + +Help__ +# CHECK: Debugger commands: + +command delete Help__ +Help__ +# CHECK: error: 'Help__' is not a valid command diff --git a/lldb/lit/Commands/command-regex-unalias.test b/lldb/lit/Commands/command-regex-unalias.test new file mode 100644 index 00000000000..34113154cbd --- /dev/null +++ b/lldb/lit/Commands/command-regex-unalias.test @@ -0,0 +1,11 @@ +# Check that commands created with command regex cannot be unaliased +# RUN: %lldb -s %s 2>&1 | FileCheck %s + +command regex 'Help__' +# CHECK: Enter one of more sed substitution commands in the form +# We need to leave a new line after to end the regex. +s/^$/help/ + +command unalias Help__ +Help__ +# CHECK: error: 'Help__' is not an alias |