SDLTest_AssertPass("Call to SDL_DelEventWatch()");
/* Push a user event onto the queue and force queue update */
g_eventFilterCalled=0;
SDL_PushEvent(&event);
SDLTest_AssertPass("Call to SDL_PushEvent()");
SDL_PumpEvents();
SDLTest_AssertPass("Call to SDL_PumpEvents()");
SDLTest_AssertCheck(g_eventFilterCalled==0,"Check that event filter was NOT called");
returnTEST_COMPLETED;
}
/* ================= Test References ================== */
/* Events test cases */
staticconstSDLTest_TestCaseReferenceeventsTest1={
(SDLTest_TestCaseFp)events_pushPumpAndPollUserevent,"events_pushPumpAndPollUserevent","Pushes, pumps and polls a user event",TEST_ENABLED
};
staticconstSDLTest_TestCaseReferenceeventsTest2={
(SDLTest_TestCaseFp)events_addDelEventWatch,"events_addDelEventWatch","Adds and deletes an event watch function with NULL userdata",TEST_ENABLED
};
staticconstSDLTest_TestCaseReferenceeventsTest3={
(SDLTest_TestCaseFp)events_addDelEventWatchWithUserdata,"events_addDelEventWatchWithUserdata","Adds and deletes an event watch function with userdata",TEST_ENABLED