Add image data definitions (for render tests) to test lib

This commit is contained in:
Andreas Schiffler 2012-12-20 08:50:36 -08:00
parent 02c860852a
commit f5af517cd2
10 changed files with 5667 additions and 3 deletions

View file

@ -50,7 +50,7 @@ void SDLTest_Assert(int assertCondition, char *assertDescription, ...)
char logMessage[SDLTEST_MAX_LOGMESSAGE_LENGTH];
// Print assert description into a buffer
memset(logMessage, 0, SDLTEST_MAX_LOGMESSAGE_LENGTH);
SDL_memset(logMessage, 0, SDLTEST_MAX_LOGMESSAGE_LENGTH);
va_start(list, assertDescription);
SDL_vsnprintf(logMessage, SDLTEST_MAX_LOGMESSAGE_LENGTH - 1, assertDescription, list);
va_end(list);
@ -69,7 +69,7 @@ int SDLTest_AssertCheck(int assertCondition, char *assertDescription, ...)
char *logFormat = (char *)SDLTest_AssertCheckFormat;
// Print assert description into a buffer
memset(logMessage, 0, SDLTEST_MAX_LOGMESSAGE_LENGTH);
SDL_memset(logMessage, 0, SDLTEST_MAX_LOGMESSAGE_LENGTH);
va_start(list, assertDescription);
SDL_vsnprintf(logMessage, SDLTEST_MAX_LOGMESSAGE_LENGTH - 1, assertDescription, list);
va_end(list);
@ -99,7 +99,7 @@ void SDLTest_AssertPass(char *assertDescription, ...)
char *logFormat = (char *)SDLTest_AssertCheckFormat;
// Print assert description into a buffer
memset(logMessage, 0, SDLTEST_MAX_LOGMESSAGE_LENGTH);
SDL_memset(logMessage, 0, SDLTEST_MAX_LOGMESSAGE_LENGTH);
va_start(list, assertDescription);
SDL_vsnprintf(logMessage, SDLTEST_MAX_LOGMESSAGE_LENGTH - 1, assertDescription, list);
va_end(list);