Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't test ANSI any mapping on non en-US locales. #34599

Merged
1 commit merged into from
Apr 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/coreclr/tests/src/Interop/PInvoke/AsAny/AsAnyTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,13 @@ private static void RunAsAnyFieldTests()

private static void RunBestFitMappingTests()
{
if (System.Globalization.CultureInfo.CurrentCulture.Name != "en-US")
{
Console.WriteLine("Non english platforms are not supported");
AaronRobinsonMSFT marked this conversation as resolved.
Show resolved Hide resolved
Console.WriteLine("passing without running tests");
AaronRobinsonMSFT marked this conversation as resolved.
Show resolved Hide resolved
return;
}

TestAnsiStringBestFitMapping();
TestAnsiStringBuilder();
TestAnsiStringArrayBestFitMapping();
Expand Down