33 SDLTest_AssertCheck(userdata !=
NULL,
"Check userdata pointer, expected: non-NULL, got: %s", (userdata !=
NULL) ?
"non-NULL" :
"NULL");
34 if (userdata !=
NULL) {
70 SDLTest_AssertCheck(result == 1,
"Check result from SDL_PollEvent, expected: 1, got: %d", result);
#define SDL_DelEventWatch
Sint32 SDLTest_RandomIntegerInRange(Sint32 min, Sint32 max)
Sint32 SDLTest_RandomSint32(void)
void SDLTest_AssertPass(SDL_PRINTF_FORMAT_STRING const char *assertDescription,...) SDL_PRINTF_VARARG_FUNC(1)
Explicitly pass without checking an assertion condition. Updates assertion counter.
static const SDLTest_TestCaseReference eventsTest3
int events_addDelEventWatch(void *arg)
Adds and deletes an event watch function with NULL userdata.
static const SDLTest_TestCaseReference * eventsTests[]
int(* SDLTest_TestCaseFp)(void *arg)
static const SDLTest_TestCaseReference eventsTest2
int SDLTest_AssertCheck(int assertCondition, SDL_PRINTF_FORMAT_STRING const char *assertDescription,...) SDL_PRINTF_VARARG_FUNC(2)
Assert for test cases that logs but does not break execution flow on failures. Updates assertion coun...
int events_addDelEventWatchWithUserdata(void *arg)
Adds and deletes an event watch function with userdata.
int _events_sampleNullEventFilter(void *userdata, SDL_Event *event)
SDLTest_TestSuiteReference eventsTestSuite
#define SDL_AddEventWatch
int events_pushPumpAndPollUserevent(void *arg)
Test pumping and peeking events.
static const SDLTest_TestCaseReference eventsTest1