2 from lldbsuite
.test
.lldbtest
import *
3 from lldbsuite
.test
.decorators
import *
4 import lldbsuite
.test
.lldbutil
as lldbutil
7 class TestObjCXXBridgedPO(TestBase
):
9 @skipIf(macos_version
=[">=", "13.0"])
10 def test_bridged_type_po(self
):
12 lldbutil
.run_to_source_breakpoint(
13 self
, "break here", lldb
.SBFileSpec("main.mm")
17 "did not get the Objective-C object description",
18 substrs
=["CFNumber", "0x", "42"],
20 pointer_val
= str(self
.frame().FindVariable("num").GetValue())
23 "did not get the Objective-C object description",
24 substrs
=["CFNumber", "0x", "42"],
28 @skipIf(macos_version
=["<", "13.0"])
29 def test_bridged_type_po(self
):
30 """Starting on macOS 13 CoreFoundation links against Foundation,
31 so we always get the Foundation object description.
34 lldbutil
.run_to_source_breakpoint(
35 self
, "break here", lldb
.SBFileSpec("main.mm")
38 "po num", "did not get the Objective-C object description", substrs
=["42"]
40 pointer_val
= str(self
.frame().FindVariable("num").GetValue())
43 "did not get the Objective-C object description",