Skip to content

Commit

Permalink
Fix error assert for negative cases of pixels_getPixelFormatName test
Browse files Browse the repository at this point in the history
  • Loading branch information
ferzkopp committed Oct 22, 2013
1 parent 6a71d99 commit 09b3b7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/testautomation_pixels.c
Expand Up @@ -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;
Expand Down

0 comments on commit 09b3b7e

Please sign in to comment.