From 1484067b371471f2ad45de22adf255482ddf8d4d Mon Sep 17 00:00:00 2001 From: Anton Firszov Date: Mon, 20 Jan 2020 00:56:55 +0100 Subject: [PATCH] skip memory-intensive allocator tests --- .../Alocators/ArrayPoolMemoryAllocatorTests.cs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/tests/ImageSharp.Tests/Memory/Alocators/ArrayPoolMemoryAllocatorTests.cs b/tests/ImageSharp.Tests/Memory/Alocators/ArrayPoolMemoryAllocatorTests.cs index 1c1d72167..6495ca21d 100644 --- a/tests/ImageSharp.Tests/Memory/Alocators/ArrayPoolMemoryAllocatorTests.cs +++ b/tests/ImageSharp.Tests/Memory/Alocators/ArrayPoolMemoryAllocatorTests.cs @@ -6,11 +6,13 @@ using System; using System.Buffers; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using SixLabors.Tests; +using SixLabors.ImageSharp.Tests; using Xunit; namespace SixLabors.Memory.Tests { + // TODO: Re-enable memory-intensive tests with arcade RemoteExecutor: + // https://github.com/dotnet/runtime/blob/master/docs/project/writing-tests.md#remoteexecutor public class ArrayPoolMemoryAllocatorTests { private const int MaxPooledBufferSizeInBytes = 2048; @@ -79,7 +81,7 @@ namespace SixLabors.Memory.Tests Assert.True(this.CheckIsRentingPooledBuffer(size)); } - [Theory] + [Theory(Skip = "Should be executed from a separate process.")] [InlineData(128 * 1024 * 1024)] [InlineData(MaxPooledBufferSizeInBytes + 1)] public void LargeBuffersAreNotPooled_OfByte(int size) @@ -101,7 +103,7 @@ namespace SixLabors.Memory.Tests Assert.True(this.CheckIsRentingPooledBuffer(count)); } - [Fact] + [Fact(Skip = "Should be executed from a separate process.")] public unsafe void LaregeBuffersAreNotPooled_OfBigValueType() { if (!TestEnvironment.Is64BitProcess) @@ -160,7 +162,8 @@ namespace SixLabors.Memory.Tests buffer.Dispose(); } - [Fact] + + [Fact(Skip = "Should be executed from a separate process.")] public void AllocationOverLargeArrayThreshold_UsesDifferentPool() { if (!TestEnvironment.Is64BitProcess) @@ -180,7 +183,7 @@ namespace SixLabors.Memory.Tests Assert.False(Unsafe.AreSame(ref ptr2Small, ref large.GetReference())); } - [Fact] + [Fact(Skip = "Should be executed from a separate process.")] public void CreateWithAggressivePooling() { if (!TestEnvironment.Is64BitProcess) @@ -194,7 +197,7 @@ namespace SixLabors.Memory.Tests Assert.True(this.CheckIsRentingPooledBuffer(4096 * 4096)); } - [Fact] + [Fact(Skip = "Should be executed from a separate process.")] public void CreateDefault() { if (!TestEnvironment.Is64BitProcess)