From cbe01319e0bff87b5d2104e12e9b15ea4ebe43b6 Mon Sep 17 00:00:00 2001 From: Sylvain Date: Sat, 7 Jan 2023 18:56:50 +0100 Subject: [PATCH] Fix testautomation_pixels using really invalid pixel format --- test/testautomation_pixels.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/testautomation_pixels.c b/test/testautomation_pixels.c index 2a32228a7..4ba4474ca 100644 --- a/test/testautomation_pixels.c +++ b/test/testautomation_pixels.c @@ -88,14 +88,13 @@ const char *g_AllFormatsVerbose[] = { "SDL_PIXELFORMAT_YVYU", "SDL_PIXELFORMAT_NV12", "SDL_PIXELFORMAT_NV21" - }; /* Definition of some invalid formats for negative tests */ const int g_numInvalidPixelFormats = 2; static Uint32 g_invalidPixelFormats[] = { - 0xfffffffe, - 0xffffffff + SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_ABGR, SDL_PACKEDLAYOUT_1010102 + 1, 32, 4), + SDL_DEFINE_PIXELFORMAT(SDL_PIXELTYPE_PACKED32, SDL_PACKEDORDER_ABGR, SDL_PACKEDLAYOUT_1010102 + 2, 32, 4) }; const char *g_invalidPixelFormatsVerbose[] = { "SDL_PIXELFORMAT_UNKNOWN", @@ -114,7 +113,7 @@ int pixels_allocFreeFormat(void *arg) { const char *unknownFormat = "SDL_PIXELFORMAT_UNKNOWN"; const char *expectedError = "Parameter 'format' is invalid"; - const char *expectedError2 = "Parameter 'pixel_format' is invalid"; + const char *expectedError2 = "Unknown pixel format"; const char *error; int i; Uint32 format;