From ff136cd8ad785cec869eed955fe9252c94242a6c Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Wed, 20 Nov 2019 23:02:16 +1100 Subject: [PATCH] Compare image on windows only for now. --- tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.cs b/tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.cs index 1acb4fe2d..bdd84038e 100644 --- a/tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.cs +++ b/tests/ImageSharp.Tests/Formats/Png/PngDecoderTests.cs @@ -92,9 +92,13 @@ namespace SixLabors.ImageSharp.Tests.Formats.Png { image.DebugSave(provider); + // We don't have another x-plat reference decoder that can be compared for this image. if (provider.Utility.SourceFileOrDescription == TestImages.Png.Bad.Issue1047_BadEndChunk) { - image.CompareToOriginal(provider, ImageComparer.Exact, (IImageDecoder)SystemDrawingReferenceDecoder.Instance); + if (TestEnvironment.IsWindows) + { + image.CompareToOriginal(provider, ImageComparer.Exact, (IImageDecoder)SystemDrawingReferenceDecoder.Instance); + } } else {