-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mark all BinaryFormatter-related tests as conditional #103471
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