From 3f0b45f42b4258eb4c53e2dcba950246615fa80f Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 21 Oct 2025 14:34:15 -0700
Subject: [PATCH] testanimation: skip testDecodeThirdPartyMetadata() if webp
support isn't available
---
test/testanimation.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/test/testanimation.c b/test/testanimation.c
index 36448af7..4dee20d9 100644
--- a/test/testanimation.c
+++ b/test/testanimation.c
@@ -798,6 +798,11 @@ static int SDLCALL testDecodeThirdPartyMetadata(void *args)
(void)args;
SDLTest_Log("Starting test 'Decode Third Party Metadata Test'");
+ if (!FormatAnimationEnabled("webp")) {
+ SDLTest_Log("Animation format webp disabled, skipping test");
+ return TEST_SKIPPED;
+ }
+
IMG_AnimationDecoder *thirdPartyDecoder = IMG_CreateAnimationDecoder("rgbrgb_thirdpartymetadata.webp");
SDLTest_AssertCheck(thirdPartyDecoder != NULL, "IMG_CreateAnimationDecoder");
if (thirdPartyDecoder) {