================
@@ -0,0 +1,91 @@
+"""
+Test that hidden frames are delimited with markers.
+"""
+
+import lldb
+from lldbsuite.test.decorators import *
+from lldbsuite.test.lldbtest import *
+from lldbsuite.test import lldbutil
+
+
+class HiddenFrameMarkerTest(TestBase):
+ @unicode_test
+ def test_hidden_frame_markers(self):
+ """Test that hidden frame markers are rendered in backtraces"""
+ self.build()
+ lldbutil.run_to_source_breakpoint(
+ self, "// break here", lldb.SBFileSpec("main.cpp")
+ )
+ self.expect(
+ "bt",
+ substrs=[
+ " * frame #0:",
+ " ﹍ frame #2:",
+ " ﹉ frame #3:",
+ " frame #4:",
+ ],
+ )
+
+ self.runCmd("f 1")
+ self.expect(
+ "bt",
+ substrs=[
+ " frame #0:",
+ " * frame #2:",
+ " ﹉ frame #3:",
+ " frame #4:",
+ ],
+ )
+
+ self.runCmd("f 7")
+ self.expect(
+ "bt",
+ substrs=[
+ " frame #0:",
+ " ﹍ frame #2:",
+ " * frame #3:",
+ " frame #4:",
+ ],
+ )
+
+ def test_hidden_frame_markers(self):
----------------
Michael137 wrote:
You'll have to rename this test. Otherwise it's going to shadow the other one
and only 1 of them will be run. It's a foot-gun i'm trying to implement a
github action for as we speak :)
https://github.com/llvm/llvm-project/pull/181143
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits