mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-16 09:48:26 +00:00
Revert "Removing a timer that isn't running is a success."
This reverts commit 795499a529
.
This breaks compatibility with SDL2 and there isn't a compelling reason to make this change.
This commit is contained in:
parent
d223264f17
commit
d68d32e12c
2 changed files with 9 additions and 3 deletions
|
@ -142,7 +142,7 @@ static int timer_addRemoveTimer(void *arg)
|
|||
/* Try to remove timer again (should be a NOOP) */
|
||||
result = SDL_RemoveTimer(id);
|
||||
SDLTest_AssertPass("Call to SDL_RemoveTimer()");
|
||||
SDLTest_AssertCheck(result == 0, "Check result value, expected: 0, got: %i", result);
|
||||
SDLTest_AssertCheck(result < 0, "Check result value, expected: <0, got: %i", result);
|
||||
|
||||
/* Reset state */
|
||||
param = SDLTest_RandomIntegerInRange(-1024, 1024);
|
||||
|
@ -162,7 +162,7 @@ static int timer_addRemoveTimer(void *arg)
|
|||
/* Remove timer again and check that callback was called */
|
||||
result = SDL_RemoveTimer(id);
|
||||
SDLTest_AssertPass("Call to SDL_RemoveTimer()");
|
||||
SDLTest_AssertCheck(result == 0, "Check result value, expected: 0, got: %i", result);
|
||||
SDLTest_AssertCheck(result < 0, "Check result value, expected: <0, got: %i", result);
|
||||
SDLTest_AssertCheck(g_timerCallbackCalled == 1, "Check callback WAS called, expected: 1, got: %i", g_timerCallbackCalled);
|
||||
|
||||
return TEST_COMPLETED;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue