Skip to content

Commit 08771fe

Browse files
Update tests/ImageSharp.Tests/TestUtilities/ReferenceCodecs/MagickReferenceDecoder.cs
Co-authored-by: James Jackson-South <james_south@hotmail.com>
1 parent 97d6413 commit 08771fe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/ImageSharp.Tests/TestUtilities/ReferenceCodecs/MagickReferenceDecoder.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ public Image<TPixel> Decode<TPixel>(Configuration configuration, Stream stream)
5656
where TPixel : unmanaged, ImageSharp.PixelFormats.IPixel<TPixel>
5757
{
5858
var bmpReadDefines = new BmpReadDefines
59+
{
60+
// See https://github.com/SixLabors/ImageSharp/issues/1380
61+
// Validation fails on Ubuntu despite identical header generation
62+
// on all platforms.
63+
IgnoreFileSize = !TestEnvironment.IsWindows
64+
};
5965
{
6066
IgnoreFileSize = true
6167
};

0 commit comments

Comments
 (0)