-
Notifications
You must be signed in to change notification settings - Fork 5k
don't run drawing tests on Mono #111208
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
don't run drawing tests on Mono #111208
Conversation
…on Mono, as it's not supported
/azp run runtime-extra-platforms |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
System.Drawing depends on ComWrappers that are not supported on Mono.
@adamsitnik could you backport this to .NET 9, to fix the failure on CI there? |
@matouskozak sure! I'll do it today. |
* don't run Drawing-related tests that do things like creating Bitmaps on Mono, as it's not supported (it does not support ComWrappers) * re-enable the tests
…removal (#111508) * [NRBF] Reduce the most time-consuming test case to avoid timeouts for checked builds (#110550) * don't run drawing tests on Mono (#111208) * don't run Drawing-related tests that do things like creating Bitmaps on Mono, as it's not supported (it does not support ComWrappers) * re-enable the tests
In #107553 a group of tests was failing because
Bitmap
is not supported on Mono.The code was already using a guard for that:
https://github.com/dotnet/runtime/blob/06a6ea78fbe99fd86f2f46df9b046cb4c4ea18a7/src/libraries/System.Runtime.Serialization.Formatters/tests/BinaryFormatterTestData.cs#L1346-L1349
I decided to update the logic behind
PlatformDetection.IsDrawingSupported
as I assumed it's simply not supported and could help in other places. But I need a confirmation from @matouskozak or someone else from the Mono team.fixes #107553