Skip to content

Test failure: DataContractSerializerTests.DCS_BasicPerSerializerRoundTripAndCompare_InheritedFromIList #129107

Open

Description

@VincentBu

Failed in: runtime-coreclr crossgen2 20260606.1

Failed tests:

net11.0-windows-Release-x64-TestReadyToRun_Release-Windows.Server2025.Amd64.Open
- DataContractSerializerTests.DCS_BasicPerSerializerRoundTripAndCompare_InheritedFromIList

Error message:

XML comparison is also failing
Test failed for input: SerializationTestTypes.ObjectContainer
Expected: <ObjectContainer xmlns="http://schemas.datacontract.org/2004/07/SerializationTestTypes" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><_data i:type="a:SerializationTestTypes.SampleListExplicitWithoutDC***" xmlns:a="http://schemas.datacontract.org/2004/07/SerializationTestTypes.SampleListExplicitWithoutDC***"><anyType i:type="b:dateTime" xmlns:b="http://www.w3.org/2001/XMLSchema">0001-01-01T00:00:00</anyType><anyType i:type="b:duration" xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/">P10675199DT2H48M5.4775807S</anyType><anyType i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema"/><anyType i:type="b:double" xmlns:b="http://www.w3.org/2001/XMLSchema">1.7976931348623157E+308</anyType><anyType i:type="b:double" xmlns:b="http://www.w3.org/2001/XMLSchema">-INF</anyType><anyType i:type="b:guid" xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/">0c9e174e-cdd8-4b68-a70d-aaeb26c7deeb</anyType></_data><_data2 i:type="a:SerializationTestTypes.SampleListExplicitWithoutDC***" xmlns:a="http://schemas.datacontract.org/2004/07/SerializationTestTypes.SampleListExplicitWithoutDC***"><anyType i:type="b:dateTime" xmlns:b="http://www.w3.org/2001/XMLSchema">0001-01-01T00:00:00</anyType><anyType i:type="b:duration" xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/">P10675199DT2H48M5.4775807S</anyType><anyType i:type="b:string" xmlns:b="http://www.w3.org/2001/XMLSchema"/><anyType i:type="b:double" xmlns:b="http://www.w3.org/2001/XMLSchema">1.7976931348623157E+308</anyType><anyType i:type="b:double" xmlns:b="http://www.w3.org/2001/XMLSchema">-INF</anyType><anyType i:type="b:guid" xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/">0c9e174e-cdd8-4b68-a70d-aaeb26c7deeb</anyType></_data2></ObjectContainer>
Actual: <ObjectContainer xmlns="http://schemas.datacontract.org/2004/07/SerializationTestTypes" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><_data/><_data2/></ObjectContainer>

Stack trace:

   at System.Runtime.Serialization.Tests.DataContractSerializerHelper.SerializeAndDeserialize[T](T value, String baseline, DataContractSerializerSettings settings, Func`1 serializerFactory, Boolean skipStringCompare, Boolean verifyBinaryRoundTrip) in /_/src/libraries/Common/tests/System/Runtime/Serialization/DataContractSerializerHelper.cs:line 37
   at DataContractSerializerTests.TestObjectInObjectContainerWithSimpleResolver[T](T o, String baseline, Boolean skipStringCompare) in /_/src/libraries/System.Runtime.Serialization.Xml/tests/DataContractSerializer.cs:line 4696
   at DataContractSerializerTests.DCS_BasicPerSerializerRoundTripAndCompare_InheritedFromIList() in /_/src/libraries/System.Runtime.Serialization.Xml/tests/DataContractSerializer.cs:line 3703
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions