xref: /llvm-project/lldb/test/API/commands/target/stop-hook/enable/TestTargetStopHookEnable.py (revision 2238dcc39358353cac21df75c3c3286ab20b8f53)
1import lldb
2from lldbsuite.test.decorators import *
3from lldbsuite.test.lldbtest import *
4from lldbsuite.test import lldbutil
5
6
7class TestCase(TestBase):
8    @no_debug_info_test
9    def test_invalid_arg(self):
10        self.expect(
11            "target stop-hook enable -1",
12            error=True,
13            startstr='error: invalid stop hook id: "-1".',
14        )
15        self.expect(
16            "target stop-hook enable abcdfx",
17            error=True,
18            startstr='error: invalid stop hook id: "abcdfx".',
19        )
20