Skip to content

wasm AOT library test failure - System.Xml.RW.XmlReader.Tests #46755

@mdh1418

Description

@mdh1418

In effort to run library tests with AOT compilation on CI #46633, there are a number of failures arising from #46651.

Test suite System.Xml.RW.XmlReader.Tests.csproj fails with

Not found: Data at the root level is invalid
In value:  Xml_MessageWithErrorPosition, Xml_InvalidRootData, 1, 1

Not found: Invalid character in the given encoding
In value:  Xml_MessageWithErrorPosition, Xml_InvalidCharInThisEncoding, 1, 6

Not found: Name cannot begin with the
In value:  Xml_MessageWithErrorPosition, Xml_BadStartNameChar, 1, 2

system_xml_rw_xmlreader_fail.txt

Repro:
Check out changes in #46651
./build.sh -os Browser -arch wasm -c Release
Remove

<!-- Temporary until https://github.com/mono/linker/issues/1713 is resolved -->
<assembly fullname="Microsoft.DotNet.RemoteExecutor">
<type fullname="Microsoft.DotNet.RemoteExecutor.Program">
<method signature="System.Int32 Main(System.String[])" />
</type>
</assembly>

Modify
catch (Exception e) when (IsIoRelatedException(e) && !disposing)
to be an empty catch

catch
{
}

./dotnet.sh build /t:Test /p:TargetOS=Browser /p:TargetArchitecture=wasm /p:Configuration=Release /p:EnableAggressiveTrimming=true /p:RunAOTCompilation=true src/libraries/System.Private.Xml/tests/XmlReader/Tests/System.Xml.RW.XmlReader.Tests.csproj

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions