sdl2-compat: testautomation_surface.c: added explicit comments about expected SDL3 messages.

From f5a6c675849032078d51a15d25d7fe40f6c4c2dc Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Tue, 23 Jan 2024 01:22:50 +0300
Subject: [PATCH] testautomation_surface.c: added explicit comments about
 expected SDL3 messages.

---
 test/testautomation_surface.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/test/testautomation_surface.c b/test/testautomation_surface.c
index d4505e8..92a01bc 100644
--- a/test/testautomation_surface.c
+++ b/test/testautomation_surface.c
@@ -766,7 +766,7 @@ int surface_testOverflow(void *arg)
 
     if (sizeof(size_t) == 4 && sizeof(int) >= 4) {
         SDL_ClearError();
-        expectedError = "aligning pitch would overflow";
+        expectedError = "aligning pitch would overflow"; /* SDL3 error message. Was "Out of memory" */
         /* 0x5555'5555 * 3bpp = 0xffff'ffff which fits in size_t, but adding
          * alignment padding makes it overflow */
         surface = SDL_CreateRGBSurfaceWithFormat(0, 0x55555555, 1, 24, SDL_PIXELFORMAT_RGB24);
@@ -774,20 +774,20 @@ int surface_testOverflow(void *arg)
         SDLTest_AssertCheck(SDL_strcmp(SDL_GetError(), expectedError) == 0,
                             "Expected \"%s\", got \"%s\"", expectedError, SDL_GetError());
         SDL_ClearError();
-        expectedError = "width * bpp would overflow";
+        expectedError = "width * bpp would overflow";     /* SDL3 error message. */
         /* 0x4000'0000 * 4bpp = 0x1'0000'0000 which (just) overflows */
         surface = SDL_CreateRGBSurfaceWithFormat(0, 0x40000000, 1, 32, SDL_PIXELFORMAT_ARGB8888);
         SDLTest_AssertCheck(surface == NULL, "Should detect overflow in width * bytes per pixel");
         SDLTest_AssertCheck(SDL_strcmp(SDL_GetError(), expectedError) == 0,
                             "Expected \"%s\", got \"%s\"", expectedError, SDL_GetError());
         SDL_ClearError();
-        expectedError = "height * pitch would overflow";
+        expectedError = "height * pitch would overflow"; /* SDL3 error message. */
         surface = SDL_CreateRGBSurfaceWithFormat(0, (1 << 29) - 1, (1 << 29) - 1, 8, SDL_PIXELFORMAT_INDEX8);
         SDLTest_AssertCheck(surface == NULL, "Should detect overflow in width * height");
         SDLTest_AssertCheck(SDL_strcmp(SDL_GetError(), expectedError) == 0,
                             "Expected \"%s\", got \"%s\"", expectedError, SDL_GetError());
         SDL_ClearError();
-        expectedError = "height * pitch would overflow";
+        expectedError = "height * pitch would overflow"; /* SDL3 error message. */
         surface = SDL_CreateRGBSurfaceWithFormat(0, (1 << 15) + 1, (1 << 15) + 1, 32, SDL_PIXELFORMAT_ARGB8888);
         SDLTest_AssertCheck(surface == NULL, "Should detect overflow in width * height * bytes per pixel");
         SDLTest_AssertCheck(SDL_strcmp(SDL_GetError(), expectedError) == 0,