2 from lldbsuite
.test
.lldbtest
import TestBase
3 from lldbsuite
.test
import lldbutil
6 class TestCase(TestBase
):
9 lldbutil
.run_to_source_breakpoint(self
, "return", lldb
.SBFileSpec("main.c"))
11 # Expect "frame #0" but not "frame #1".
12 self
.expect("bt 1", inHistory
=True, patterns
=["frame #0", "^(?!.*frame #1)"])
14 # Run an empty command to run the repeat command for `bt`.
15 # The repeat command for `bt N` lists the subsequent N frames.
17 # In this case, after printing the frame 0 with `bt 1`, the repeat
18 # command will print "frame #1" (and won't print "frame #0").
19 self
.expect("", patterns
=["^(?!.*frame #0)", "frame #1"])