File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Common/tests/TestUtilities/System
System.Globalization/tests Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ public static partial class PlatformDetection
4040 public static bool IsNotArm64Process => ! IsArm64Process ;
4141 public static bool IsArmOrArm64Process => IsArmProcess || IsArm64Process ;
4242 public static bool IsNotArmNorArm64Process => ! IsArmOrArm64Process ;
43+ public static bool IsX86Process => RuntimeInformation . ProcessArchitecture == Architecture . X86 ;
4344 public static bool IsArgIteratorSupported => IsMonoRuntime || ( IsWindows && IsNotArmProcess ) ;
4445 public static bool IsArgIteratorNotSupported => ! IsArgIteratorSupported ;
4546 public static bool Is32BitProcess => IntPtr . Size == 4 ;
Original file line number Diff line number Diff line change @@ -10,7 +10,9 @@ namespace System.Globalization.Tests
1010 public class IcuTests
1111 {
1212 private static bool IsIcuCompatiblePlatform => PlatformDetection . IsNotWindows ||
13- PlatformDetection . IsWindows10Version1903OrGreater ;
13+ PlatformDetection . IsWindows10Version1903OrGreater &&
14+ // Server core doesn't have icu.dll on SysWOW64
15+ ! ( PlatformDetection . IsWindowsServerCore && PlatformDetection . IsX86Process ) ;
1416
1517 [ ConditionalFact ( nameof ( IsIcuCompatiblePlatform ) ) ]
1618 public static void IcuShouldBeUsedByDefault ( )
You can’t perform that action at this time.
0 commit comments