xref: /llvm-project/lldb/test/API/commands/command/delete/TestCommandDelete.py (revision 2238dcc39358353cac21df75c3c3286ab20b8f53)
199451b44SJordan Rupprechtimport lldb
299451b44SJordan Rupprechtfrom lldbsuite.test.lldbtest import *
399451b44SJordan Rupprechtfrom lldbsuite.test.decorators import *
499451b44SJordan Rupprecht
599451b44SJordan Rupprecht
6*2238dcc3SJonas Devlieghereclass DeleteCommandTestCase(TestBase):
799451b44SJordan Rupprecht    @no_debug_info_test
899451b44SJordan Rupprecht    def test_delete_builtin(self):
9*2238dcc3SJonas Devlieghere        self.expect(
10*2238dcc3SJonas Devlieghere            "command delete settings",
11*2238dcc3SJonas Devlieghere            error=True,
12*2238dcc3SJonas Devlieghere            substrs=[
13*2238dcc3SJonas Devlieghere                "'settings' is a permanent debugger command and cannot be removed."
14*2238dcc3SJonas Devlieghere            ],
15*2238dcc3SJonas Devlieghere        )
1699451b44SJordan Rupprecht
1799451b44SJordan Rupprecht    @no_debug_info_test
1899451b44SJordan Rupprecht    def test_delete_alias(self):
19*2238dcc3SJonas Devlieghere        self.expect(
20*2238dcc3SJonas Devlieghere            "command delete bt", error=True, substrs=["'bt' is not a known command."]
21*2238dcc3SJonas Devlieghere        )
22