Skip to content

Fix: skip Bitmap tests on non-Windows CI#535

Merged
Nucs merged 1 commit intomasterfrom
dotnet810
Feb 8, 2026
Merged

Fix: skip Bitmap tests on non-Windows CI#535
Nucs merged 1 commit intomasterfrom
dotnet810

Conversation

@Nucs
Copy link
Member

@Nucs Nucs commented Feb 8, 2026

Summary

  • Add [ClassInitialize] with OperatingSystem.IsWindows() check to all 3 Bitmap test classes
  • Tests report as Inconclusive (skipped) on Linux/macOS instead of failing with PlatformNotSupportedException

Fixes the CI failure introduced by #532System.Drawing.Common requires GDI+ which is Windows-only since .NET 6.

Affected classes: BitmapWithAlphaTests, BitmapExtensionsTests, OpenBugsBitmap

System.Drawing.Common requires GDI+ which is only available on Windows
since .NET 6. Add [ClassInitialize] with OperatingSystem.IsWindows()
check to all three Bitmap test classes so they report as Inconclusive
(skipped) on Linux/macOS CI runners instead of failing with
PlatformNotSupportedException.
@Nucs Nucs merged commit 476804c into master Feb 8, 2026
1 of 4 checks passed
@Nucs Nucs added the infrastructure CI/CD, build system, testing framework, tooling label Feb 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure CI/CD, build system, testing framework, tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant