https://github.com/libsdl-org/SDL/commit/f2f04e825d74366eb0a1958031e409bfb5d4ecef
From f2f04e825d74366eb0a1958031e409bfb5d4ecef Mon Sep 17 00:00:00 2001
From: Frank Praznik <[EMAIL REDACTED]>
Date: Wed, 8 Jan 2025 11:02:07 -0500
Subject: [PATCH] tests: Fix get/set window size test being skipped
A return check conversion was missed when the SDL_* functions were converted to return boolean values instead of int, which caused this test to be skipped.
---
test/testautomation_video.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/testautomation_video.c b/test/testautomation_video.c
index 5547f965a980c..c457ef17f04d4 100644
--- a/test/testautomation_video.c
+++ b/test/testautomation_video.c
@@ -1026,7 +1026,7 @@ static int SDLCALL video_getSetWindowSize(void *arg)
}
SDL_GetWindowSize(window, ¤tW, ¤tH);
- if (SDL_SetWindowSize(window, currentW, currentH)) {
+ if (!SDL_SetWindowSize(window, currentW, currentH)) {
SDLTest_Log("Skipping window resize tests: %s reports window resizing as unsupported", SDL_GetCurrentVideoDriver());
goto null_tests;
}