testautomation_mouse: fix format '%i' expecting 'int' instead of 'Uint32'

Emitted by Nintendo 3DS's gcc
This commit is contained in:
Anonymous Maarten 2022-10-06 02:51:50 +02:00 committed by Anonymous Maarten
parent b51a88a95c
commit b8a4b8d1cd
1 changed files with 8 additions and 8 deletions

View File

@ -41,21 +41,21 @@ mouse_getMouseState(void *arg)
/* Case where x, y pointer is NULL */ /* Case where x, y pointer is NULL */
state = SDL_GetMouseState(NULL, NULL); state = SDL_GetMouseState(NULL, NULL);
SDLTest_AssertPass("Call to SDL_GetMouseState(NULL, NULL)"); SDLTest_AssertPass("Call to SDL_GetMouseState(NULL, NULL)");
SDLTest_AssertCheck(_mouseStateCheck(state), "Validate state returned from function, got: %i", state); SDLTest_AssertCheck(_mouseStateCheck(state), "Validate state returned from function, got: %u", state);
/* Case where x pointer is not NULL */ /* Case where x pointer is not NULL */
x = INT_MIN; x = INT_MIN;
state = SDL_GetMouseState(&x, NULL); state = SDL_GetMouseState(&x, NULL);
SDLTest_AssertPass("Call to SDL_GetMouseState(&x, NULL)"); SDLTest_AssertPass("Call to SDL_GetMouseState(&x, NULL)");
SDLTest_AssertCheck(x > INT_MIN, "Validate that value of x is > INT_MIN, got: %i", x); SDLTest_AssertCheck(x > INT_MIN, "Validate that value of x is > INT_MIN, got: %i", x);
SDLTest_AssertCheck(_mouseStateCheck(state), "Validate state returned from function, got: %i", state); SDLTest_AssertCheck(_mouseStateCheck(state), "Validate state returned from function, got: %u", state);
/* Case where y pointer is not NULL */ /* Case where y pointer is not NULL */
y = INT_MIN; y = INT_MIN;
state = SDL_GetMouseState(NULL, &y); state = SDL_GetMouseState(NULL, &y);
SDLTest_AssertPass("Call to SDL_GetMouseState(NULL, &y)"); SDLTest_AssertPass("Call to SDL_GetMouseState(NULL, &y)");
SDLTest_AssertCheck(y > INT_MIN, "Validate that value of y is > INT_MIN, got: %i", y); SDLTest_AssertCheck(y > INT_MIN, "Validate that value of y is > INT_MIN, got: %i", y);
SDLTest_AssertCheck(_mouseStateCheck(state), "Validate state returned from function, got: %i", state); SDLTest_AssertCheck(_mouseStateCheck(state), "Validate state returned from function, got: %u", state);
/* Case where x and y pointer is not NULL */ /* Case where x and y pointer is not NULL */
x = INT_MIN; x = INT_MIN;
@ -64,7 +64,7 @@ mouse_getMouseState(void *arg)
SDLTest_AssertPass("Call to SDL_GetMouseState(&x, &y)"); SDLTest_AssertPass("Call to SDL_GetMouseState(&x, &y)");
SDLTest_AssertCheck(x > INT_MIN, "Validate that value of x is > INT_MIN, got: %i", x); SDLTest_AssertCheck(x > INT_MIN, "Validate that value of x is > INT_MIN, got: %i", x);
SDLTest_AssertCheck(y > INT_MIN, "Validate that value of y is > INT_MIN, got: %i", y); SDLTest_AssertCheck(y > INT_MIN, "Validate that value of y is > INT_MIN, got: %i", y);
SDLTest_AssertCheck(_mouseStateCheck(state), "Validate state returned from function, got: %i", state); SDLTest_AssertCheck(_mouseStateCheck(state), "Validate state returned from function, got: %u", state);
return TEST_COMPLETED; return TEST_COMPLETED;
} }
@ -87,21 +87,21 @@ mouse_getRelativeMouseState(void *arg)
/* Case where x, y pointer is NULL */ /* Case where x, y pointer is NULL */
state = SDL_GetRelativeMouseState(NULL, NULL); state = SDL_GetRelativeMouseState(NULL, NULL);
SDLTest_AssertPass("Call to SDL_GetRelativeMouseState(NULL, NULL)"); SDLTest_AssertPass("Call to SDL_GetRelativeMouseState(NULL, NULL)");
SDLTest_AssertCheck(_mouseStateCheck(state), "Validate state returned from function, got: %i", state); SDLTest_AssertCheck(_mouseStateCheck(state), "Validate state returned from function, got: %u", state);
/* Case where x pointer is not NULL */ /* Case where x pointer is not NULL */
x = INT_MIN; x = INT_MIN;
state = SDL_GetRelativeMouseState(&x, NULL); state = SDL_GetRelativeMouseState(&x, NULL);
SDLTest_AssertPass("Call to SDL_GetRelativeMouseState(&x, NULL)"); SDLTest_AssertPass("Call to SDL_GetRelativeMouseState(&x, NULL)");
SDLTest_AssertCheck(x > INT_MIN, "Validate that value of x is > INT_MIN, got: %i", x); SDLTest_AssertCheck(x > INT_MIN, "Validate that value of x is > INT_MIN, got: %i", x);
SDLTest_AssertCheck(_mouseStateCheck(state), "Validate state returned from function, got: %i", state); SDLTest_AssertCheck(_mouseStateCheck(state), "Validate state returned from function, got: %u", state);
/* Case where y pointer is not NULL */ /* Case where y pointer is not NULL */
y = INT_MIN; y = INT_MIN;
state = SDL_GetRelativeMouseState(NULL, &y); state = SDL_GetRelativeMouseState(NULL, &y);
SDLTest_AssertPass("Call to SDL_GetRelativeMouseState(NULL, &y)"); SDLTest_AssertPass("Call to SDL_GetRelativeMouseState(NULL, &y)");
SDLTest_AssertCheck(y > INT_MIN, "Validate that value of y is > INT_MIN, got: %i", y); SDLTest_AssertCheck(y > INT_MIN, "Validate that value of y is > INT_MIN, got: %i", y);
SDLTest_AssertCheck(_mouseStateCheck(state), "Validate state returned from function, got: %i", state); SDLTest_AssertCheck(_mouseStateCheck(state), "Validate state returned from function, got: %u", state);
/* Case where x and y pointer is not NULL */ /* Case where x and y pointer is not NULL */
x = INT_MIN; x = INT_MIN;
@ -110,7 +110,7 @@ mouse_getRelativeMouseState(void *arg)
SDLTest_AssertPass("Call to SDL_GetRelativeMouseState(&x, &y)"); SDLTest_AssertPass("Call to SDL_GetRelativeMouseState(&x, &y)");
SDLTest_AssertCheck(x > INT_MIN, "Validate that value of x is > INT_MIN, got: %i", x); SDLTest_AssertCheck(x > INT_MIN, "Validate that value of x is > INT_MIN, got: %i", x);
SDLTest_AssertCheck(y > INT_MIN, "Validate that value of y is > INT_MIN, got: %i", y); SDLTest_AssertCheck(y > INT_MIN, "Validate that value of y is > INT_MIN, got: %i", y);
SDLTest_AssertCheck(_mouseStateCheck(state), "Validate state returned from function, got: %i", state); SDLTest_AssertCheck(_mouseStateCheck(state), "Validate state returned from function, got: %u", state);
return TEST_COMPLETED; return TEST_COMPLETED;
} }