From 14eef74a341e784ec4d01857d60efffafaf80544 Mon Sep 17 00:00:00 2001 From: Anton Firszov Date: Mon, 8 Nov 2021 21:36:06 +0100 Subject: [PATCH] Use [ConditionalFact] instead of [PlatformSpecific] --- .../Allocators/UniformUnmanagedPoolMemoryAllocatorTests.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/ImageSharp.Tests/Memory/Allocators/UniformUnmanagedPoolMemoryAllocatorTests.cs b/tests/ImageSharp.Tests/Memory/Allocators/UniformUnmanagedPoolMemoryAllocatorTests.cs index 033101f5d..6a1190169 100644 --- a/tests/ImageSharp.Tests/Memory/Allocators/UniformUnmanagedPoolMemoryAllocatorTests.cs +++ b/tests/ImageSharp.Tests/Memory/Allocators/UniformUnmanagedPoolMemoryAllocatorTests.cs @@ -163,8 +163,9 @@ namespace SixLabors.ImageSharp.Tests.Memory.Allocators } } - [Fact] - [PlatformSpecific(~TestPlatforms.OSX)] // TODO: Investigate OSX failure + public static bool IsNotOsx = !TestEnvironment.IsOSX; + + [ConditionalFact(nameof(IsNotOsx))] // TODO: Investigate OSX failure public void MemoryAllocator_Create_LimitPoolSize() { RemoteExecutor.Invoke(RunTest).Dispose();