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