xref: /llvm-project/lldb/test/API/commands/command/delete/TestCommandDelete.py (revision 2238dcc39358353cac21df75c3c3286ab20b8f53)
1import lldb
2from lldbsuite.test.lldbtest import *
3from lldbsuite.test.decorators import *
4
5
6class DeleteCommandTestCase(TestBase):
7    @no_debug_info_test
8    def test_delete_builtin(self):
9        self.expect(
10            "command delete settings",
11            error=True,
12            substrs=[
13                "'settings' is a permanent debugger command and cannot be removed."
14            ],
15        )
16
17    @no_debug_info_test
18    def test_delete_alias(self):
19        self.expect(
20            "command delete bt", error=True, substrs=["'bt' is not a known command."]
21        )
22