xref: /llvm-project/lldb/test/API/commands/process/signal/TestProcessSignal.py (revision 2238dcc39358353cac21df75c3c3286ab20b8f53)
1import lldb
2from lldbsuite.test.lldbtest import *
3from lldbsuite.test import lldbutil
4from lldbsuite.test.decorators import *
5
6
7class TestCase(TestBase):
8    @no_debug_info_test
9    def test_invalid_arg(self):
10        self.build()
11
12        lldbutil.run_to_source_breakpoint(
13            self, "// break here", lldb.SBFileSpec("main.cpp")
14        )
15        self.expect(
16            "process signal az",
17            error=True,
18            startstr="error: Invalid signal argument 'az'.",
19        )
20        self.expect(
21            "process signal 0x1ffffffff",
22            error=True,
23            startstr="error: Invalid signal argument '0x1ffffffff'.",
24        )
25        self.expect(
26            "process signal 0xffffffff",
27            error=True,
28            startstr="error: Invalid signal argument '0xffffffff'.",
29        )
30