@@ -557,8 +557,9 @@ public void Match_DefaultTimeout_Throws(RegexOptions options)
557
557
}
558
558
559
559
// On 32-bit we can't test these high inputs as they cause OutOfMemoryExceptions.
560
+ // On Linux, we may get killed by the OOM Killer; on Windows, it will swap instead
560
561
[ OuterLoop ( "Can take several seconds" ) ]
561
- [ ConditionalTheory ( typeof ( Environment ) , nameof ( Environment . Is64BitProcess ) ) ]
562
+ [ ConditionalTheory ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . Is64BitProcess ) , nameof ( PlatformDetection . IsWindows ) ) ]
562
563
[ InlineData ( @"a\s+" , RegexOptions . None ) ]
563
564
[ InlineData ( @"a\s+" , RegexOptions . Compiled ) ]
564
565
[ InlineData ( @"a\s+ " , RegexOptions . None ) ]
@@ -571,8 +572,9 @@ public void Match_Timeout_Loop_Throws(string pattern, RegexOptions options)
571
572
}
572
573
573
574
// On 32-bit we can't test these high inputs as they cause OutOfMemoryExceptions.
575
+ // On Linux, we may get killed by the OOM Killer; on Windows, it will swap instead
574
576
[ OuterLoop ( "Can take several seconds" ) ]
575
- [ ConditionalTheory ( typeof ( Environment ) , nameof ( Environment . Is64BitProcess ) ) ]
577
+ [ ConditionalTheory ( typeof ( PlatformDetection ) , nameof ( PlatformDetection . Is64BitProcess ) , nameof ( PlatformDetection . IsWindows ) ) ]
576
578
[ InlineData ( RegexOptions . None ) ]
577
579
[ InlineData ( RegexOptions . Compiled ) ]
578
580
public void Match_Timeout_Repetition_Throws ( RegexOptions options )
0 commit comments