30 lines · python
1import lldb2from lldbsuite.test.lldbtest import *3from lldbsuite.test import lldbutil4from lldbsuite.test.decorators import *5 6 7class TestCase(TestBase):8 @no_debug_info_test9 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