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
40
40
public static bool IsNotArm64Process => ! IsArm64Process ;
41
41
public static bool IsArmOrArm64Process => IsArmProcess || IsArm64Process ;
42
42
public static bool IsNotArmNorArm64Process => ! IsArmOrArm64Process ;
43
+ public static bool IsX86Process => RuntimeInformation . ProcessArchitecture == Architecture . X86 ;
43
44
public static bool IsArgIteratorSupported => IsMonoRuntime || ( IsWindows && IsNotArmProcess ) ;
44
45
public static bool IsArgIteratorNotSupported => ! IsArgIteratorSupported ;
45
46
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
10
10
public class IcuTests
11
11
{
12
12
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 ) ;
14
16
15
17
[ ConditionalFact ( nameof ( IsIcuCompatiblePlatform ) ) ]
16
18
public static void IcuShouldBeUsedByDefault ( )
You can’t perform that action at this time.
0 commit comments