[Lldb-commits] [lldb] 11e5275 - Document why test is disabled on macOS Ventura

Adrian Prantl via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 3 13:06:39 PDT 2022


Author: Adrian Prantl
Date: 2022-08-03T13:05:21-07:00
New Revision: 11e5275cc266ab5ff07e3685935cebf6e09372f7

URL: https://github.com/llvm/llvm-project/commit/11e5275cc266ab5ff07e3685935cebf6e09372f7
DIFF: https://github.com/llvm/llvm-project/commit/11e5275cc266ab5ff07e3685935cebf6e09372f7.diff

LOG: Document why test is disabled on macOS Ventura

Starting with macOS 13 CoreFoundation pulls in Foundation, so we
always get the Foundation object description.

rdar://96224141

Differential Revision: https://reviews.llvm.org/D131025

Added: 
    

Modified: 
    lldb/test/API/lang/objcxx/cxx-bridged-po/TestObjCXXBridgedPO.py

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/lang/objcxx/cxx-bridged-po/TestObjCXXBridgedPO.py b/lldb/test/API/lang/objcxx/cxx-bridged-po/TestObjCXXBridgedPO.py
index f5c03e849c031..39baacea6f779 100644
--- a/lldb/test/API/lang/objcxx/cxx-bridged-po/TestObjCXXBridgedPO.py
+++ b/lldb/test/API/lang/objcxx/cxx-bridged-po/TestObjCXXBridgedPO.py
@@ -5,7 +5,8 @@
 
 class TestObjCXXBridgedPO(TestBase):
 
-    @expectedFailureAll(macos_version=[">=", "13.0"]) # rdar://96224141
+    @skipIfDarwinEmbedded
+    @skipIf(macos_version=[">=", "13.0"])
     def test_bridged_type_po(self):
         self.build()
         lldbutil.run_to_source_breakpoint(
@@ -17,3 +18,20 @@ def test_bridged_type_po(self):
         self.expect('po '+pointer_val,
                     "did not get the Objective-C object description",
                     substrs=['CFNumber', '0x', '42'])
+
+    @skipIfDarwinEmbedded
+    @skipIf(macos_version=["<", "13.0"])
+    def test_bridged_type_po(self):
+        """Starting on macOS 13 CoreFoundation links against Foundation,
+           so we always get the Foundation object description.
+        """
+        self.build()
+        lldbutil.run_to_source_breakpoint(
+            self, 'break here', lldb.SBFileSpec('main.mm'))
+        self.expect('po num',
+                    "did not get the Objective-C object description",
+                    substrs=['42'])
+        pointer_val = str(self.frame().FindVariable('num').GetValue())
+        self.expect('po '+pointer_val,
+                    "did not get the Objective-C object description",
+                    substrs=['42'])


        


More information about the lldb-commits mailing list