From 401d746edd3233baf9092bb982c389dbe0a31852 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20K=C3=B6plinger?= Date: Wed, 14 Jul 2021 18:40:16 +0200 Subject: [PATCH] Disable some System.Drawing.Common tests failing on Windows Mono After https://github.com/dotnet/runtime/pull/54884 these tests started failing on Mono on Windows, see https://github.com/dotnet/runtime/issues/55655. --- src/libraries/System.Drawing.Common/tests/IconTests.cs | 2 ++ .../System.Drawing.Common/tests/Imaging/MetafileTests.cs | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/libraries/System.Drawing.Common/tests/IconTests.cs b/src/libraries/System.Drawing.Common/tests/IconTests.cs index 108e277aee25b..7a415016e4262 100644 --- a/src/libraries/System.Drawing.Common/tests/IconTests.cs +++ b/src/libraries/System.Drawing.Common/tests/IconTests.cs @@ -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() { @@ -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() { diff --git a/src/libraries/System.Drawing.Common/tests/Imaging/MetafileTests.cs b/src/libraries/System.Drawing.Common/tests/Imaging/MetafileTests.cs index a70b44aa61822..ef466a33c0d40 100644 --- a/src/libraries/System.Drawing.Common/tests/Imaging/MetafileTests.cs +++ b/src/libraries/System.Drawing.Common/tests/Imaging/MetafileTests.cs @@ -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() { @@ -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) @@ -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)