File tree 1 file changed +13
-0
lines changed
stdlib/private/StdlibUnittest
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -2444,6 +2444,8 @@ public enum TestRunPredicate : CustomStringConvertible {
2444
2444
2445
2445
case haikuAny( reason: String )
2446
2446
2447
+ case wasiAny( reason: String )
2448
+
2447
2449
case objCRuntime( /*reason:*/ String )
2448
2450
case nativeRuntime( /*reason:*/ String )
2449
2451
@@ -2565,6 +2567,9 @@ public enum TestRunPredicate : CustomStringConvertible {
2565
2567
case . haikuAny( reason: let reason) :
2566
2568
return " haikuAny(*, reason: \( reason) ) "
2567
2569
2570
+ case . wasiAny( reason: let reason) :
2571
+ return " wasiAny(*, reason: \( reason) ) "
2572
+
2568
2573
case . objCRuntime( let reason) :
2569
2574
return " Objective-C runtime, reason: \( reason) ) "
2570
2575
case . nativeRuntime( let reason) :
@@ -2947,6 +2952,14 @@ public enum TestRunPredicate : CustomStringConvertible {
2947
2952
return false
2948
2953
}
2949
2954
2955
+ case . wasiAny:
2956
+ switch _getRunningOSVersion ( ) {
2957
+ case . wasi:
2958
+ return true
2959
+ default :
2960
+ return false
2961
+ }
2962
+
2950
2963
case . objCRuntime:
2951
2964
#if _runtime(_ObjC)
2952
2965
return true
You can’t perform that action at this time.
0 commit comments