File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
stdlib/private/StdlibUnittest Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -1124,6 +1124,9 @@ func _getRunningOSVersion() -> OSVersion {
1124
1124
public enum TestRunPredicate : CustomStringConvertible {
1125
1125
case Custom( ( ) -> Bool , reason: String )
1126
1126
1127
+ case Always( /*reason:*/ String )
1128
+ case Never
1129
+
1127
1130
case OSXAny( /*reason:*/ String )
1128
1131
case OSXMajor( Int , reason: String )
1129
1132
case OSXMinor( Int , Int , reason: String )
@@ -1166,6 +1169,12 @@ public enum TestRunPredicate : CustomStringConvertible {
1166
1169
switch self {
1167
1170
case Custom ( _, let reason) :
1168
1171
return " Custom(reason: \( reason) ) "
1172
+
1173
+ case Always ( let reason) :
1174
+ return " Always(reason: \( reason) ) "
1175
+ case Never:
1176
+ return " "
1177
+
1169
1178
case OSXAny ( let reason) :
1170
1179
return " OSX(*, reason: \( reason) ) "
1171
1180
case OSXMajor ( let major, let reason) :
@@ -1240,6 +1249,11 @@ public enum TestRunPredicate : CustomStringConvertible {
1240
1249
case Custom ( let predicate, _) :
1241
1250
return predicate ( )
1242
1251
1252
+ case Always:
1253
+ return true
1254
+ case Never:
1255
+ return false
1256
+
1243
1257
case OSXAny:
1244
1258
switch _getRunningOSVersion ( ) {
1245
1259
case . OSX:
You can’t perform that action at this time.
0 commit comments