================ @@ -0,0 +1,46 @@ +import lldb +import re + +from lldbsuite.test.decorators import * +from lldbsuite.test.lldbtest import * +from lldbsuite.test.lldbpexpect import PExpectTest + + +class TestStatusline(PExpectTest): + def do_setup(self): + # Create a target and run to a breakpoint. + exe = self.getBuildArtifact("a.out") + self.expect( + "target create {}".format(exe), substrs=["Current executable set to"] + ) + self.expect('breakpoint set -p "Break here"', substrs=["Breakpoint 1"]) + self.expect("run", substrs=["stop reason"]) + + # PExpect uses many timeouts internally and doesn't play well + # under ASAN on a loaded machine.. + @skipIfAsan + def test(self): + """Basic test for the statusline. + + PExpect was designed for line-oriented output so we're limited in what + we can test. + """ + self.build() + self.launch(timeout=3) ---------------- labath wrote:
remove short timeout https://github.com/llvm/llvm-project/pull/121860 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits