summaryrefslogtreecommitdiffstats
path: root/gnu/llvm/lldb/packages/Python/lldbsuite/test/commands/command/delete
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2020-08-03 14:33:06 +0000
committerpatrick <patrick@openbsd.org>2020-08-03 14:33:06 +0000
commit061da546b983eb767bad15e67af1174fb0bcf31c (patch)
tree83c78b820819d70aa40c36d90447978b300078c5 /gnu/llvm/lldb/packages/Python/lldbsuite/test/commands/command/delete
parentImport LLVM 10.0.0 release including clang, lld and lldb. (diff)
downloadwireguard-openbsd-061da546b983eb767bad15e67af1174fb0bcf31c.tar.xz
wireguard-openbsd-061da546b983eb767bad15e67af1174fb0bcf31c.zip
Import LLVM 10.0.0 release including clang, lld and lldb.
ok hackroom tested by plenty
Diffstat (limited to 'gnu/llvm/lldb/packages/Python/lldbsuite/test/commands/command/delete')
-rw-r--r--gnu/llvm/lldb/packages/Python/lldbsuite/test/commands/command/delete/TestCommandDelete.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/gnu/llvm/lldb/packages/Python/lldbsuite/test/commands/command/delete/TestCommandDelete.py b/gnu/llvm/lldb/packages/Python/lldbsuite/test/commands/command/delete/TestCommandDelete.py
new file mode 100644
index 00000000000..3fa654d20aa
--- /dev/null
+++ b/gnu/llvm/lldb/packages/Python/lldbsuite/test/commands/command/delete/TestCommandDelete.py
@@ -0,0 +1,17 @@
+import lldb
+from lldbsuite.test.lldbtest import *
+from lldbsuite.test.decorators import *
+
+class DeleteCommandTestCase(TestBase):
+
+ mydir = TestBase.compute_mydir(__file__)
+
+ @no_debug_info_test
+ def test_delete_builtin(self):
+ self.expect("command delete settings", error=True,
+ substrs=["'settings' is a permanent debugger command and cannot be removed."])
+
+ @no_debug_info_test
+ def test_delete_alias(self):
+ self.expect("command delete bt", error=True,
+ substrs=["'bt' is not a known command."])