From 48c0a262819ef7a2b9e34ecc13d77def1fbb910c Mon Sep 17 00:00:00 2001 From: Brian Popow Date: Fri, 22 Oct 2021 15:14:54 +0200 Subject: [PATCH] Skip test if Avx is not supported --- tests/ImageSharp.Tests/Formats/Jpg/DCTTests.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/ImageSharp.Tests/Formats/Jpg/DCTTests.cs b/tests/ImageSharp.Tests/Formats/Jpg/DCTTests.cs index b4d3769d7..0a49d20cd 100644 --- a/tests/ImageSharp.Tests/Formats/Jpg/DCTTests.cs +++ b/tests/ImageSharp.Tests/Formats/Jpg/DCTTests.cs @@ -121,6 +121,7 @@ namespace SixLabors.ImageSharp.Tests.Formats.Jpg if (!Avx.IsSupported) { this.Output.WriteLine("No AVX present, skipping test!"); + return; } Span src = Create8x8RoundedRandomFloatData(-200, 200, seed);