Skip to content

Commit

Permalink
Try disabling new high memory tests on failing platforms.
Browse files Browse the repository at this point in the history
  • Loading branch information
JimBobSquarePants committed Nov 26, 2023
1 parent 44b0311 commit 55e69c7
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/ImageSharp.Tests/Formats/Gif/GifEncoderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,11 @@ public void OptionalExtensionsShouldBeHandledProperly<TPixel>(TestImageProvider<
public void Encode_AnimatedFormatTransform_FromPng<TPixel>(TestImageProvider<TPixel> provider)
where TPixel : unmanaged, IPixel<TPixel>
{
if (TestEnvironment.RunsOnCI && !TestEnvironment.IsWindows)
{
return;
}

using Image<TPixel> image = provider.GetImage(PngDecoder.Instance);

using MemoryStream memStream = new();
Expand Down Expand Up @@ -318,6 +323,11 @@ public void Encode_AnimatedFormatTransform_FromPng<TPixel>(TestImageProvider<TPi
public void Encode_AnimatedFormatTransform_FromWebp<TPixel>(TestImageProvider<TPixel> provider)
where TPixel : unmanaged, IPixel<TPixel>
{
if (TestEnvironment.RunsOnCI && !TestEnvironment.IsWindows)
{
return;
}

using Image<TPixel> image = provider.GetImage(WebpDecoder.Instance);

using MemoryStream memStream = new();
Expand Down
10 changes: 10 additions & 0 deletions tests/ImageSharp.Tests/Formats/Png/PngEncoderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,11 @@ public void Encode_APng<TPixel>(TestImageProvider<TPixel> provider)
public void Encode_AnimatedFormatTransform_FromGif<TPixel>(TestImageProvider<TPixel> provider)
where TPixel : unmanaged, IPixel<TPixel>
{
if (TestEnvironment.RunsOnCI && !TestEnvironment.IsWindows)
{
return;
}

using Image<TPixel> image = provider.GetImage(GifDecoder.Instance);

using MemoryStream memStream = new();
Expand Down Expand Up @@ -530,6 +535,11 @@ public void Encode_AnimatedFormatTransform_FromGif<TPixel>(TestImageProvider<TPi
public void Encode_AnimatedFormatTransform_FromWebp<TPixel>(TestImageProvider<TPixel> provider)
where TPixel : unmanaged, IPixel<TPixel>
{
if (TestEnvironment.RunsOnCI && !TestEnvironment.IsWindows)
{
return;
}

using Image<TPixel> image = provider.GetImage(WebpDecoder.Instance);

using MemoryStream memStream = new();
Expand Down
10 changes: 10 additions & 0 deletions tests/ImageSharp.Tests/Formats/WebP/WebpEncoderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ public void Encode_AnimatedLossy<TPixel>(TestImageProvider<TPixel> provider)
public void Encode_AnimatedFormatTransform_FromGif<TPixel>(TestImageProvider<TPixel> provider)
where TPixel : unmanaged, IPixel<TPixel>
{
if (TestEnvironment.RunsOnCI && !TestEnvironment.IsWindows)
{
return;
}

using Image<TPixel> image = provider.GetImage(GifDecoder.Instance);
using MemoryStream memStream = new();

Expand Down Expand Up @@ -109,6 +114,11 @@ public void Encode_AnimatedFormatTransform_FromGif<TPixel>(TestImageProvider<TPi
public void Encode_AnimatedFormatTransform_FromPng<TPixel>(TestImageProvider<TPixel> provider)
where TPixel : unmanaged, IPixel<TPixel>
{
if (TestEnvironment.RunsOnCI && !TestEnvironment.IsWindows)
{
return;
}

using Image<TPixel> image = provider.GetImage(PngDecoder.Instance);

using MemoryStream memStream = new();
Expand Down

0 comments on commit 55e69c7

Please sign in to comment.