[lldb][NFC] Test 'command delete'
authorRaphael Isemann <teemperor@gmail.com>
Tue, 3 Sep 2019 10:13:45 +0000 (10:13 +0000)
committerRaphael Isemann <teemperor@gmail.com>
Tue, 3 Sep 2019 10:13:45 +0000 (10:13 +0000)
llvm-svn: 370733

lldb/packages/Python/lldbsuite/test/commands/command/delete/TestCommandDelete.py [new file with mode: 0644]

diff --git a/lldb/packages/Python/lldbsuite/test/commands/command/delete/TestCommandDelete.py b/lldb/packages/Python/lldbsuite/test/commands/command/delete/TestCommandDelete.py
new file mode 100644 (file)
index 0000000..3fa654d
--- /dev/null
@@ -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."])