Skip to content

[Android] Invariant.Tests.csproj is failing on CoreCLR Android #117270

@kotlarmilos

Description

@kotlarmilos

Description

The System.Globalization.Tests/Invariant/Invariant.Tests.csproj fails on CoreCLR Android because the invariant-globalization flag isn't propagated to the runtime at startup. The project file contains

<InvariantGlobalization>true</InvariantGlobalization>

but the CoreCLR initialization code in monodroid-coreclr.c does not forward this setting as an appcontext variable, so the runtime never runs in invariant-globalization mode.

Reproduction Steps

Build the runtime:

build.sh -arch arm64 -os android  -s clr.runtime+clr.alljits+clr.corelib+clr.nativecorelib+clr.tools+clr.packages+libs+libs.tests+host+packs -c Release /p:ArchiveTests=true /p:RunSmokeTestsOnly=True

Run the apk using Android Studio.

Expected behavior

The tests pass on the CI: https://dev.azure.com/dnceng-public/public/_build?definitionId=223

Actual behavior

The tests fail on the CI.

Metadata

Metadata

Type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions