Skip to content

Commit adb85d9

Browse files
committed
Another attempt for a Linux-specific skip
1 parent efc3fc4 commit adb85d9

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tests/ImageSharp.Tests/Formats/Bmp/BmpDecoderTests.cs

+7-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using System;
55
using System.IO;
66
using Microsoft.DotNet.RemoteExecutor;
7-
7+
using Microsoft.DotNet.XUnitExtensions;
88
using SixLabors.ImageSharp.Formats.Bmp;
99
using SixLabors.ImageSharp.Memory;
1010
using SixLabors.ImageSharp.Metadata;
@@ -598,8 +598,7 @@ public void BmpDecoder_CanDecode_Os2v2Header<TPixel>(TestImageProvider<TPixel> p
598598
}
599599
}
600600

601-
[Theory]
602-
[PlatformSpecific(~TestPlatforms.Linux)] // See discussion on https://github.com/SixLabors/ImageSharp/pull/2890
601+
[ConditionalTheory]
603602
[WithFile(Os2BitmapArray, PixelTypes.Rgba32)]
604603
[WithFile(Os2BitmapArray9s, PixelTypes.Rgba32)]
605604
[WithFile(Os2BitmapArrayDiamond, PixelTypes.Rgba32)]
@@ -612,6 +611,11 @@ public void BmpDecoder_CanDecode_Os2v2Header<TPixel>(TestImageProvider<TPixel> p
612611
public void BmpDecoder_CanDecode_Os2BitmapArray<TPixel>(TestImageProvider<TPixel> provider)
613612
where TPixel : unmanaged, IPixel<TPixel>
614613
{
614+
if (TestEnvironment.IsLinux)
615+
{
616+
throw new SkipTestException("See discussion on https://github.com/SixLabors/ImageSharp/pull/2890");
617+
}
618+
615619
using (Image<TPixel> image = provider.GetImage(BmpDecoder))
616620
{
617621
image.DebugSave(provider);

0 commit comments

Comments
 (0)