From 09b3b7e78b67d18712bc1a4871d6f8781e8ff00a Mon Sep 17 00:00:00 2001 From: Andreas Schiffler Date: Mon, 21 Oct 2013 23:17:37 -0700 Subject: [PATCH] Fix error assert for negative cases of pixels_getPixelFormatName test --- test/testautomation_pixels.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/testautomation_pixels.c b/test/testautomation_pixels.c index 5112333cd..04e00deb2 100644 --- a/test/testautomation_pixels.c +++ b/test/testautomation_pixels.c @@ -297,7 +297,7 @@ pixels_getPixelFormatName(void *arg) } error = SDL_GetError(); SDLTest_AssertPass("Call to SDL_GetError()"); - SDLTest_AssertCheck(error != NULL && error[0] != '\0', "Validate that error message is empty"); + SDLTest_AssertCheck(error == NULL || error[0] == '\0', "Validate that error message is empty"); } return TEST_COMPLETED;