Add missing VS2012 test projects; update VS2010 and VS2012 solutions; update keybord suite for VS compiler warnings

This commit is contained in:
Andreas Schiffler 2013-06-03 19:24:18 -07:00
parent 3426ac11ad
commit 5a7d3757f5
9 changed files with 1151 additions and 252 deletions

View file

@ -25,13 +25,13 @@ keyboard_getKeyboardState(void *arg)
Uint8 *state;
/* Case where numkeys pointer is NULL */
state = SDL_GetKeyboardState(NULL);
state = (Uint8 *)SDL_GetKeyboardState(NULL);
SDLTest_AssertPass("Call to SDL_GetKeyboardState(NULL)");
SDLTest_AssertCheck(state != NULL, "Validate that return value from SDL_GetKeyboardState is not NULL");
/* Case where numkeys pointer is not NULL */
numkeys = -1;
state = SDL_GetKeyboardState(&numkeys);
state = (Uint8 *)SDL_GetKeyboardState(&numkeys);
SDLTest_AssertPass("Call to SDL_GetKeyboardState(&numkeys)");
SDLTest_AssertCheck(state != NULL, "Validate that return value from SDL_GetKeyboardState is not NULL");
SDLTest_AssertCheck(numkeys >= 0, "Validate that value of numkeys is >= 0, got: %i", numkeys);