From 7101b8c21c46affb661de0599bfda0a45b480668 Mon Sep 17 00:00:00 2001 From: Meri Khamoyan <96171496+mkhamoyan@users.noreply.github.com> Date: Mon, 29 Jan 2024 09:14:30 +0100 Subject: [PATCH] Exclude tests for Apple platforms on hybrid mode (#97550) Exclude tests for Apple platforms on hybrid mode --- .../CompareInfo/CompareInfoTests.HashCode.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libraries/System.Runtime/tests/System.Globalization.Tests/CompareInfo/CompareInfoTests.HashCode.cs b/src/libraries/System.Runtime/tests/System.Globalization.Tests/CompareInfo/CompareInfoTests.HashCode.cs index 1ad0639711d96b..9ee808a6282e41 100644 --- a/src/libraries/System.Runtime/tests/System.Globalization.Tests/CompareInfo/CompareInfoTests.HashCode.cs +++ b/src/libraries/System.Runtime/tests/System.Globalization.Tests/CompareInfo/CompareInfoTests.HashCode.cs @@ -25,7 +25,8 @@ public static IEnumerable HashCodeLocalized_TestData() if (!PlatformDetection.IsHybridGlobalizationOnBrowser) { - yield return new object[] { new CultureInfo("en-GB").CompareInfo, "100", "100!", CompareOptions.IgnoreSymbols }; // HG: equal: True, hashCodesEqual: False + if (PlatformDetection.IsNotHybridGlobalizationOnApplePlatform) + yield return new object[] { new CultureInfo("en-GB").CompareInfo, "100", "100!", CompareOptions.IgnoreSymbols }; // HG: equal: True, hashCodesEqual: False yield return new object[] { new CultureInfo("ja-JP").CompareInfo, "\u30A2", "\u3042", CompareOptions.IgnoreKanaType }; // HG: equal: True, hashCodesEqual: False yield return new object[] { new CultureInfo("en-GB").CompareInfo, "caf\u00E9", "cafe\u0301", CompareOptions.IgnoreNonSpace | CompareOptions.IgnoreKanaType }; // HG: equal: True, hashCodesEqual: False } @@ -99,6 +100,7 @@ public static IEnumerable CheckHashingOfSkippedChars_TestData() [ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsIcuGlobalization))] [MemberData(nameof(CheckHashingOfSkippedChars_TestData))] + [ActiveIssue("https://github.com/dotnet/runtime/issues/95338", typeof(PlatformDetection), nameof(PlatformDetection.IsHybridGlobalizationOnApplePlatform))] public void CheckHashingOfSkippedChars(char character, CompareInfo cmpInfo) { string str1 = $"a{character}b";