Don't test ANSI any mapping on non en-US locales. (#34599)
authorAaron Robinson <arobins@microsoft.com>
Mon, 6 Apr 2020 23:48:39 +0000 (16:48 -0700)
committerGitHub <noreply@github.com>
Mon, 6 Apr 2020 23:48:39 +0000 (23:48 +0000)
src/coreclr/tests/src/Interop/PInvoke/AsAny/AsAnyTest.cs

index 7e19867..46707cb 100644 (file)
@@ -339,6 +339,13 @@ class AsAnyTests
 
     private static void RunBestFitMappingTests()
     {
+        if (System.Globalization.CultureInfo.CurrentCulture.Name != "en-US")
+        {
+            Console.WriteLine("Non english platforms are not supported");
+            Console.WriteLine("passing without running tests");
+            return;
+        }
+
         TestAnsiStringBestFitMapping();
         TestAnsiStringBuilder();
         TestAnsiStringArrayBestFitMapping();