diff options
| author | Davide Italiano <davide@freebsd.org> | 2019-02-06 21:48:01 +0000 |
|---|---|---|
| committer | Davide Italiano <davide@freebsd.org> | 2019-02-06 21:48:01 +0000 |
| commit | 6c27a06302c234871b137d80c3c157f251333695 (patch) | |
| tree | d3685b69dafce16bcb58b36344a5e436096c4d9c /lldb/lit/Commands/command-regex-unalias.test | |
| parent | 42f58498c563ba5c936dbe456799148d33a9ac5e (diff) | |
| download | bcm5719-llvm-6c27a06302c234871b137d80c3c157f251333695.tar.gz bcm5719-llvm-6c27a06302c234871b137d80c3c157f251333695.zip | |
[testsuite] Convert a pexpect test to lit.
Summary:
Reviewers: JDevlieghere, friss, zturner, labath, jingham, serge-sans-paille
Subscribers: llvm-commits, lldb-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D57840
llvm-svn: 353345
Diffstat (limited to 'lldb/lit/Commands/command-regex-unalias.test')
| -rw-r--r-- | lldb/lit/Commands/command-regex-unalias.test | 11 |
1 files changed, 11 insertions, 0 deletions
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 |

