mark all BinaryFormatter-related tests as conditional#103471
mark all BinaryFormatter-related tests as conditional#103471adamsitnik merged 5 commits intodotnet:mainfrom
Conversation
…atformDetection.IsBinaryFormatterSupported to be true, fixes dotnet#103406
|
/azp run runtime-extra-platforms |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
The following failure is related: Once I've added [ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsBinaryFormatterSupported))]
public abstract class SerializationTest<TSerializer> where TSerializer : ISerializer
[ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsDrawingSupported))]
public abstract class SystemDrawingTests<T> : SerializationTest<T> where T : ISerializer |
…h different conditions
|
/azp run runtime-extra-platforms |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Despite adding @akoeplinger @dotnet/area-system-drawing what am I missing? |
|
IsDrawingSupported just checks that we're on Windows, but Mono doesn't support COM Interop which this is apparently trying to use. You can check for SupportsComInterop or IsBuiltInComEnabled |
src/libraries/System.Resources.Extensions/tests/BinaryFormatTests/Common/SystemDrawingTests.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Resources.Extensions/tests/BinaryFormatTests/Common/SystemDrawingTests.cs
Outdated
Show resolved
Hide resolved
|
@akoeplinger thank you!! |
|
/azp run runtime-extra-platforms |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
There is another build failure that I am not sure how to solve: Since the goal of @akoeplinger But how can I do that? |
|
@adamsitnik you should be able to skip the whole test project by adding |
|
/azp run runtime-extra-platforms |
|
Azure Pipelines successfully started running 1 pipeline(s). |
fixes #103406