2 from lldbsuite
.test
.lldbtest
import *
3 from lldbsuite
.test
import lldbutil
4 from lldbsuite
.test
.decorators
import *
7 class TestCase(TestBase
):
8 def test_invalid_arg(self
):
11 lldbutil
.run_to_source_breakpoint(
12 self
, "// break here", lldb
.SBFileSpec("main.cpp")
16 "thread select 0x1ffffffff",
18 startstr
="error: Invalid thread index '0x1ffffffff'",
21 "thread select -t 0x1ffffffff",
23 startstr
="error: Invalid thread ID",
26 "thread select 1 2 3",
28 startstr
="error: 'thread select' takes exactly one thread index argument, or a thread ID option:",
31 "thread select -t 1234 1",
33 startstr
="error: 'thread select' cannot take both a thread ID option and a thread index argument:",
35 # Parses but not a valid thread id.
37 "thread select 0xffffffff",
39 startstr
="error: Invalid thread index #0xffffffff.",
42 "thread select -t 0xffffffff",
44 startstr
="error: Invalid thread ID",
47 def test_thread_select_tid(self
):
50 lldbutil
.run_to_source_breakpoint(
51 self
, "// break here", lldb
.SBFileSpec("main.cpp")
54 "thread select -t %d" % self
.thread().GetThreadID(),