Corrected spelling in C source files of test suites.

This commit is contained in:
Philipp Wiesemann 2013-05-05 12:47:44 +02:00
parent e2fe26af28
commit b5c9f3354d
5 changed files with 6 additions and 6 deletions

View file

@ -96,7 +96,7 @@ clipboard_testClipboardTextFunctions(void *arg)
SDLTest_AssertPass("Call to SDL_HasClipboardText succeeded"); SDLTest_AssertPass("Call to SDL_HasClipboardText succeeded");
if (boolResult == SDL_TRUE) { if (boolResult == SDL_TRUE) {
intResult = SDL_SetClipboardText((const char *)NULL); intResult = SDL_SetClipboardText((const char *)NULL);
SDLTest_AssertPass("Call to DL_SetClipboardText(NULL) succeeded"); SDLTest_AssertPass("Call to SDL_SetClipboardText(NULL) succeeded");
SDLTest_AssertCheck( SDLTest_AssertCheck(
intResult == 0, intResult == 0,
"Verify result from SDL_SetClipboardText(NULL), expected 0, got %i", "Verify result from SDL_SetClipboardText(NULL), expected 0, got %i",

View file

@ -76,7 +76,7 @@ static int main_testImpliedJoystickInit (void *arg)
initialized_system = SDL_WasInit(joy_and_controller); initialized_system = SDL_WasInit(joy_and_controller);
SDLTest_AssertCheck( (initialized_system & joy_and_controller) == joy_and_controller, "SDL_WasInit() should be true for joystick & controller (%x)", initialized_system ); SDLTest_AssertCheck( (initialized_system & joy_and_controller) == joy_and_controller, "SDL_WasInit() should be true for joystick & controller (%x)", initialized_system );
// Then quit the controller, and make sure that imlicity also quits the // Then quit the controller, and make sure that implicitly also quits the
// joystick subsystem // joystick subsystem
SDL_QuitSubSystem(SDL_INIT_GAMECONTROLLER); SDL_QuitSubSystem(SDL_INIT_GAMECONTROLLER);
initialized_system = SDL_WasInit(joy_and_controller); initialized_system = SDL_WasInit(joy_and_controller);

View file

@ -403,7 +403,7 @@ mouse_getSetRelativeMouseMode(void *arg)
SDLTest_AssertPass("Call to SDL_GetRelativeMouseMode()"); SDLTest_AssertPass("Call to SDL_GetRelativeMouseMode()");
SDLTest_AssertCheck(currentState == SDL_FALSE, "Validate current state is FALSE, got: %i", currentState); SDLTest_AssertCheck(currentState == SDL_FALSE, "Validate current state is FALSE, got: %i", currentState);
/* Revert to originl state - ignore result */ /* Revert to original state - ignore result */
result = SDL_SetRelativeMouseMode(initialState); result = SDL_SetRelativeMouseMode(initialState);
return TEST_COMPLETED; return TEST_COMPLETED;

View file

@ -1169,7 +1169,7 @@ sdltest_randomAsciiStringOfSize(void *arg)
nonAsciiCharacters++; nonAsciiCharacters++;
} }
} }
SDLTest_AssertCheck(nonAsciiCharacters == 0, "Validate that result does not contain non-Ascii characters, got: %d", nonAsciiCharacters); SDLTest_AssertCheck(nonAsciiCharacters == 0, "Validate that result does not contain non-ASCII characters, got: %d", nonAsciiCharacters);
if (nonAsciiCharacters) { if (nonAsciiCharacters) {
SDLTest_LogError("Invalid result from generator: '%s'", result); SDLTest_LogError("Invalid result from generator: '%s'", result);
} }

View file

@ -90,7 +90,7 @@ timer_delayAndGetTicks(void *arg)
SDLTest_AssertPass("Call to SDL_GetTicks()"); SDLTest_AssertPass("Call to SDL_GetTicks()");
SDLTest_AssertCheck(result > 0, "Check result value, expected: >0, got: %d", result); SDLTest_AssertCheck(result > 0, "Check result value, expected: >0, got: %d", result);
/* Delay a bit longer and mesure ticks and verify difference */ /* Delay a bit longer and measure ticks and verify difference */
SDL_Delay(testDelay); SDL_Delay(testDelay);
SDLTest_AssertPass("Call to SDL_Delay(%d)", testDelay); SDLTest_AssertPass("Call to SDL_Delay(%d)", testDelay);
result2 = SDL_GetTicks(); result2 = SDL_GetTicks();
@ -144,7 +144,7 @@ timer_addRemoveTimer(void *arg)
SDLTest_AssertCheck(result == SDL_TRUE, "Check result value, expected: %i, got: %i", SDL_TRUE, result); SDLTest_AssertCheck(result == SDL_TRUE, "Check result value, expected: %i, got: %i", SDL_TRUE, result);
SDLTest_AssertCheck(_timerCallbackCalled == 0, "Check callback WAS NOT called, expected: 0, got: %i", _timerCallbackCalled); SDLTest_AssertCheck(_timerCallbackCalled == 0, "Check callback WAS NOT called, expected: 0, got: %i", _timerCallbackCalled);
/* Try to temove timer again (should be a NOOP) */ /* Try to remove timer again (should be a NOOP) */
result = SDL_RemoveTimer(id); result = SDL_RemoveTimer(id);
SDLTest_AssertPass("Call to SDL_RemoveTimer()"); SDLTest_AssertPass("Call to SDL_RemoveTimer()");
SDLTest_AssertCheck(result == SDL_FALSE, "Check result value, expected: %i, got: %i", SDL_FALSE, result); SDLTest_AssertCheck(result == SDL_FALSE, "Check result value, expected: %i, got: %i", SDL_FALSE, result);