Skip to content

Commit

Permalink
Disable some System.Drawing.Common tests failing on Windows Mono
Browse files Browse the repository at this point in the history
After dotnet#54884 these tests started failing on Mono on Windows, see dotnet#55655.
  • Loading branch information
akoeplinger committed Jul 14, 2021
1 parent fa779e8 commit 401d746
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 401d746

Please sign in to comment.