From 99f9f1f2d811159104bf40c2d1ef5644a7de3c42 Mon Sep 17 00:00:00 2001 From: Raphael Isemann Date: Tue, 3 Sep 2019 10:13:45 +0000 Subject: [PATCH] [lldb][NFC] Test 'command delete' llvm-svn: 370733 --- .../command/delete/TestCommandDelete.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 lldb/packages/Python/lldbsuite/test/commands/command/delete/TestCommandDelete.py 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 index 000000000000..3fa654d20aa9 --- /dev/null +++ b/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."])