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 @@ -1165,6 +1165,9 @@ public enum TestRunPredicate : CustomStringConvertible {
1165
1165
1166
1166
case FreeBSDAny( reason: String )
1167
1167
1168
+ case ObjCRuntime( /*reason:*/ String )
1169
+ case NativeRuntime( /*reason:*/ String )
1170
+
1168
1171
public var description : String {
1169
1172
switch self {
1170
1173
case Custom ( _, let reason) :
@@ -1241,6 +1244,11 @@ public enum TestRunPredicate : CustomStringConvertible {
1241
1244
1242
1245
case FreeBSDAny ( reason: let reason) :
1243
1246
return " FreeBSDAny(*, reason: \( reason) ) "
1247
+
1248
+ case ObjCRuntime ( let reason) :
1249
+ return " Objective-C runtime, reason: \( reason) ) "
1250
+ case NativeRuntime ( let reason) :
1251
+ return " Native runtime (no ObjC), reason: \( reason) ) "
1244
1252
}
1245
1253
}
1246
1254
@@ -1485,6 +1493,20 @@ public enum TestRunPredicate : CustomStringConvertible {
1485
1493
default :
1486
1494
return false
1487
1495
}
1496
+
1497
+ case ObjCRuntime:
1498
+ #if _runtime(_ObjC)
1499
+ return true
1500
+ #else
1501
+ return false
1502
+ #endif
1503
+
1504
+ case NativeRuntime:
1505
+ #if _runtime(_ObjC)
1506
+ return false
1507
+ #else
1508
+ return true
1509
+ #endif
1488
1510
}
1489
1511
}
1490
1512
}
You can’t perform that action at this time.
0 commit comments