File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
stdlib/private/StdlibUnittest Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -1162,6 +1162,9 @@ public enum TestRunPredicate : CustomStringConvertible {
11621162
11631163 case FreeBSDAny( reason: String )
11641164
1165+ case ObjCRuntime( /*reason:*/ String )
1166+ case NativeRuntime( /*reason:*/ String )
1167+
11651168 public var description : String {
11661169 switch self {
11671170 case Custom ( _, let reason) :
@@ -1232,6 +1235,11 @@ public enum TestRunPredicate : CustomStringConvertible {
12321235
12331236 case FreeBSDAny ( reason: let reason) :
12341237 return " FreeBSDAny(*, reason: \( reason) ) "
1238+
1239+ case ObjCRuntime ( let reason) :
1240+ return " Objective-C runtime, reason: \( reason) ) "
1241+ case NativeRuntime ( let reason) :
1242+ return " Native runtime (no ObjC), reason: \( reason) ) "
12351243 }
12361244 }
12371245
@@ -1471,6 +1479,20 @@ public enum TestRunPredicate : CustomStringConvertible {
14711479 default :
14721480 return false
14731481 }
1482+
1483+ case ObjCRuntime:
1484+ #if _runtime(_ObjC)
1485+ return true
1486+ #else
1487+ return false
1488+ #endif
1489+
1490+ case NativeRuntime:
1491+ #if _runtime(_ObjC)
1492+ return false
1493+ #else
1494+ return true
1495+ #endif
14741496 }
14751497 }
14761498}
You can’t perform that action at this time.
0 commit comments