Skip to content

Commit 01955a2

Browse files
authored
Disable some System.Drawing.Common tests failing on Windows Mono (#55656)
After #54884 these tests started failing on Mono on Windows, see #55655.
1 parent 44f7103 commit 01955a2

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/libraries/System.Drawing.Common/tests/IconTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,7 @@ public void ToBitmap_BitmapIconFromHandle_ReturnsExpected()
610610
private const string DontSupportPngFramesInIcons = "Switch.System.Drawing.DontSupportPngFramesInIcons";
611611

612612
[ActiveIssue("https://github.com/dotnet/runtime/issues/22221", TestPlatforms.AnyUnix)]
613+
[ActiveIssue("https://github.com/dotnet/runtime/issues/55655", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)]
613614
[ConditionalFact(Helpers.IsDrawingSupported)]
614615
public void ToBitmap_PngIconSupportedInSwitches_Success()
615616
{
@@ -647,6 +648,7 @@ void VerifyPng()
647648
}
648649

649650
[ActiveIssue("https://github.com/dotnet/runtime/issues/22221", TestPlatforms.AnyUnix)]
651+
[ActiveIssue("https://github.com/dotnet/runtime/issues/55655", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)]
650652
[ConditionalFact(Helpers.IsDrawingSupported)]
651653
public void ToBitmap_PngIconNotSupportedInSwitches_ThrowsArgumentOutOfRangeException()
652654
{

src/libraries/System.Drawing.Common/tests/Imaging/MetafileTests.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -852,6 +852,7 @@ public void Ctor_RectangleEmptyI_Success(string description)
852852
}
853853
}
854854

855+
[ActiveIssue("https://github.com/dotnet/runtime/issues/55655", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)]
855856
[ConditionalFact(Helpers.IsDrawingSupported)]
856857
public void Ctor_IntPtrZeroIV_ThrowsArgumentException()
857858
{
@@ -866,6 +867,7 @@ public void Ctor_IntPtrZeroIV_ThrowsArgumentException()
866867
}
867868
}
868869

870+
[ActiveIssue("https://github.com/dotnet/runtime/issues/55655", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)]
869871
[ConditionalTheory(Helpers.IsDrawingSupported)]
870872
[MemberData(nameof(MetafileFrameUnit_Invalid_TestData))]
871873
public void Ctor_InvalidFrameUnitIII_ThrowsArgumentException(MetafileFrameUnit frameUnit)
@@ -883,6 +885,7 @@ public void Ctor_InvalidFrameUnitIII_ThrowsArgumentException(MetafileFrameUnit f
883885
}
884886
}
885887

888+
[ActiveIssue("https://github.com/dotnet/runtime/issues/55655", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)]
886889
[ConditionalTheory(Helpers.IsDrawingSupported)]
887890
[MemberData(nameof(EmfType_Invalid_TestData))]
888891
public void Ctor_InvalidEmfTypeIII_ThrowsArgumentException(EmfType emfType)

0 commit comments

Comments
 (0)