Skip to content

[Wasm][AOT] Assert.True() failure #49246

@mdh1418

Description

@mdh1418

In effort to run library tests with AOT compilation and EnableAggressiveTrimming enabled on CI #48226 these errors are hit.

  • Assert.True() Failure
    Microsoft.Extensions.Configuration.Json.Tests log
    Common.Tests log
    System.Xml.XmlSchemaSet.Tests log
    Microsoft.Extensions.Configuration.Ini.Tests log
    Microsoft.Extensions.Configuration.Xml.Tests log
    Microsoft.Extensions.FileProviders.Composite.Tests log
    System.Diagnostics.StackTrace.Tests log

Repro:
Check out changes in
4f17c4e without this, many tests are not discovered.
4e7ab85 this one helps avoid some AOT compilation errors with this exception filter. There shouldn't be exception filter issues anymore.

./build.sh -os Browser -arch wasm -c Release
./dotnet.sh build /t:Test /p:TargetOS=Browser /p:TargetArchitecture=wasm /p:Configuration=Release /p:EnableAggressiveTrimming=true /p:RunAOTCompilation=true src/libraries/<path-to-test-proj>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions