Fix error assert for negative cases of pixels_getPixelFormatName test

main
Andreas Schiffler 2013-10-21 23:17:37 -07:00
parent 6a71d99233
commit 09b3b7e78b
1 changed files with 1 additions and 1 deletions

View File

@ -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;