Skip to content

Commit

Permalink
Disable some System.Drawing.Common tests failing on Windows Mono (#55656
Browse files Browse the repository at this point in the history
)

After #54884 these tests started failing on Mono on Windows, see #55655.
  • Loading branch information
akoeplinger committed Jul 14, 2021
1 parent 44f7103 commit 01955a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libraries/System.Drawing.Common/tests/IconTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,7 @@ public void ToBitmap_BitmapIconFromHandle_ReturnsExpected()
private const string DontSupportPngFramesInIcons = "Switch.System.Drawing.DontSupportPngFramesInIcons";

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

[ActiveIssue("https://github.com/dotnet/runtime/issues/22221", TestPlatforms.AnyUnix)]
[ActiveIssue("https://github.com/dotnet/runtime/issues/55655", TestPlatforms.Windows, TargetFrameworkMonikers.Netcoreapp, TestRuntimes.Mono)]
[ConditionalFact(Helpers.IsDrawingSupported)]
public void ToBitmap_PngIconNotSupportedInSwitches_ThrowsArgumentOutOfRangeException()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,7 @@ public void Ctor_RectangleEmptyI_Success(string description)
}
}

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

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

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

0 comments on commit 01955a2

Please sign in to comment.