Author: Charles Zablit
Date: 2026-08-14T14:04:35+02:00
New Revision: 207f72d5c5fe53c9eb4f1eae7be9869f641186a4

URL: 
https://github.com/llvm/llvm-project/commit/207f72d5c5fe53c9eb4f1eae7be9869f641186a4
DIFF: 
https://github.com/llvm/llvm-project/commit/207f72d5c5fe53c9eb4f1eae7be9869f641186a4.diff

LOG: [lldb] introduce the requireMacOS decorator (#216135)

This is not used in llvm.org yet, but will be used in swiftlang with
https://github.com/swiftlang/llvm-project/pull/13750.

Added: 
    

Modified: 
    lldb/packages/Python/lldbsuite/test/decorators.py

Removed: 
    


################################################################################
diff  --git a/lldb/packages/Python/lldbsuite/test/decorators.py 
b/lldb/packages/Python/lldbsuite/test/decorators.py
index abd438c0cdf6e..306eb20622746 100644
--- a/lldb/packages/Python/lldbsuite/test/decorators.py
+++ b/lldb/packages/Python/lldbsuite/test/decorators.py
@@ -1234,6 +1234,13 @@ def requirePOSIX(func):
     return requireNotPlatform(["windows"], reason="uses the posix API.")(func)
 
 
+def requireMacOS(func):
+    """Mark the item as inherently macOS-only, as opposed to other Darwin
+    platforms (iOS, tvOS, watchOS, ...).
+    """
+    return requirePlatform(["macosx"])(func)
+
+
 def requireSignals(func):
     """Mark the item as requiring POSIX signal support on the target."""
     return requireNotPlatform(["windows", "wasip1", "wasi"])(func)


        
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to