Revert "[LoongArch] Eliminate the redundant sign extension of division (#107971)"
[llvm-project.git] / lldb / test / API / functionalities / alias / TestBtAliasRepeat.py
blob42b5accddc0baf0848992d01ec71d818b1080c15
1 import lldb
2 from lldbsuite.test.lldbtest import TestBase
3 from lldbsuite.test import lldbutil
6 class TestCase(TestBase):
7 def test(self):
8 self.build()
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"])