1import lldb 2from lldbsuite.test.lldbtest import * 3from lldbsuite.test import lldbutil 4from lldbsuite.test.decorators import * 5 6 7class TestCase(TestBase): 8 def test_invalid_arg(self): 9 self.build() 10 11 lldbutil.run_to_source_breakpoint( 12 self, "// break here", lldb.SBFileSpec("main.cpp") 13 ) 14 15 self.expect( 16 "thread select -1", error=True, startstr="error: Invalid thread index '-1'" 17 ) 18 self.expect( 19 "thread select 0x1ffffffff", 20 error=True, 21 startstr="error: Invalid thread index '0x1ffffffff'", 22 ) 23 # Parses but not a valid thread id. 24 self.expect( 25 "thread select 0xffffffff", 26 error=True, 27 startstr="error: invalid thread #0xffffffff.", 28 ) 29