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