From 7880c18cd0d565a26c4e7c3e324c7c7c5b47c1e2 Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Wed, 19 Jun 2019 12:32:08 +0200 Subject: [PATCH] Guard for large array support in System.Drawing.Common tests (dotnet/corefx#38672) Commit migrated from https://github.com/dotnet/corefx/commit/fd9801068f1baf8d69893da2a414eee7556e51b0 --- src/libraries/System.Drawing.Common/tests/Drawing2D/BlendTests.cs | 2 +- src/libraries/System.Drawing.Common/tests/Drawing2D/ColorBlendTests.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libraries/System.Drawing.Common/tests/Drawing2D/BlendTests.cs b/src/libraries/System.Drawing.Common/tests/Drawing2D/BlendTests.cs index e9822f6..85bb8ec 100644 --- a/src/libraries/System.Drawing.Common/tests/Drawing2D/BlendTests.cs +++ b/src/libraries/System.Drawing.Common/tests/Drawing2D/BlendTests.cs @@ -32,7 +32,7 @@ namespace System.Drawing.Drawing2D.Tests Assert.Throws(() => new Blend(-1)); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotIntMaxValueArrayIndexSupported))] public void Ctor_LargeCount_ThrowsOutOfMemoryException() { Assert.Throws(() => new Blend(int.MaxValue)); diff --git a/src/libraries/System.Drawing.Common/tests/Drawing2D/ColorBlendTests.cs b/src/libraries/System.Drawing.Common/tests/Drawing2D/ColorBlendTests.cs index 0d77cca..24a82fc 100644 --- a/src/libraries/System.Drawing.Common/tests/Drawing2D/ColorBlendTests.cs +++ b/src/libraries/System.Drawing.Common/tests/Drawing2D/ColorBlendTests.cs @@ -32,7 +32,7 @@ namespace System.Drawing.Drawing2D.Tests Assert.Throws(() => new ColorBlend(-1)); } - [Fact] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotIntMaxValueArrayIndexSupported))] public void Ctor_LargeCount_ThrowsOutOfMemoryException() { Assert.Throws(() => new ColorBlend(int.MaxValue)); -- 2.7.4