From 531e4ee5089eb2195bbaa065eaf20c93f3e24cf3 Mon Sep 17 00:00:00 2001 From: Krzysztof Wicher Date: Fri, 29 Sep 2017 10:48:26 -0700 Subject: [PATCH] fix System.Globalization RedHat failure --- src/Common/tests/System/PlatformDetection.cs | 1 + .../tests/NumberFormatInfo/NumberFormatInfoData.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Common/tests/System/PlatformDetection.cs b/src/Common/tests/System/PlatformDetection.cs index 99f303b20506..261488cc857d 100644 --- a/src/Common/tests/System/PlatformDetection.cs +++ b/src/Common/tests/System/PlatformDetection.cs @@ -161,6 +161,7 @@ public static bool IsWinRT public static bool IsNotFedoraOrRedHatOrCentos => !IsDistroAndVersion("fedora") && !IsDistroAndVersion("rhel") && !IsDistroAndVersion("centos"); public static bool IsFedora => IsDistroAndVersion("fedora"); + public static bool IsRedHat69 => IsDistroAndVersion("rhel", "6.9") || IsDistroAndVersion("rhl", "6.9"); private static bool GetIsWindowsSubsystemForLinux() { diff --git a/src/System.Globalization/tests/NumberFormatInfo/NumberFormatInfoData.cs b/src/System.Globalization/tests/NumberFormatInfo/NumberFormatInfoData.cs index 1c57b7f5723d..e5f9c8229d26 100644 --- a/src/System.Globalization/tests/NumberFormatInfo/NumberFormatInfoData.cs +++ b/src/System.Globalization/tests/NumberFormatInfo/NumberFormatInfoData.cs @@ -17,6 +17,7 @@ public static int[] UrINNumberGroupSizes() || (PlatformDetection.IsUbuntu && !PlatformDetection.IsUbuntu1404) || PlatformDetection.IsFedora || (PlatformDetection.IsDebian && !PlatformDetection.IsDebian8) + || PlatformDetection.IsRedHat69 ) { return new int[] { 3 };