Closed
Description
These tests are failing in our CI which is building with these flags:
/p:NoPgoOptimize=true --portablebuild false /p:DotNetBuildFromSource=true /p:DotNetBuildSourceOnly=true /p:DotNetBuildTests=true --runtimeconfiguration Release --librariesConfiguration Debug
The test failures are:
System.Runtime.Serialization.Formatters.Tests.DisableBitTests.EnabledThroughFeatureSwitch
Microsoft.DotNet.RemoteExecutor.RemoteExecutionException: Microsoft.DotNet.RemoteExecutor.RemoteExecutionException : Remote process failed with an unhandled exception.
Child exception:
Xunit.Sdk.ThrowsAnyException: Assert.ThrowsAny() Failure: No exception was thrown
Expected: typeof(System.NotSupportedException)
at System.Runtime.Serialization.Formatters.Tests.DisableBitTests.<>c.<RunRemoteTest>b__9_1() in /home/tester/runtime/src/libraries/System.Runtime.Serialization.Formatters/tests/DisableBitTests.cs:line 93
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) in /home/tester/runtime/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs:line 36
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) in /home/tester/runtime/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 57
Child process:
System.Runtime.Serialization.Formatters.Tests, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51 System.Runtime.Serialization.Formatters.Tests.DisableBitTests+<>c Void <RunRemoteTest>b__9_1()
System.Runtime.Serialization.Formatters.Tests.DisableBitTests.DisabledAlwaysInBrowser
Xunit.Sdk.ThrowsException: Assert.Throws() Failure: No exception was thrown\nExpected: typeof(System.PlatformNotSupportedException)
at System.Runtime.Serialization.Formatters.Tests.DisableBitTests.DisabledAlwaysInBrowser() in /home/tester/runtime/src/libraries/System.Runtime.Serialization.Formatters/tests/DisableBitTests.cs:line 30
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args) in /home/tester/runtime/src/coreclr/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.CoreCLR.cs:line 36
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) in /home/tester/runtime/src/libraries/System.Private.CoreLib/src/System/Reflection/MethodBaseInvoker.cs:line 57
Probably this is triggered by the changes in: #103255.
@bartonjs do you have an idea what may be the issue?
cc @omajid