Fix EventWait tests

This commit is contained in:
Vraiment 2017-07-23 01:55:26 -07:00
parent 5a2c813300
commit 24c172d7ad

View File

@ -1,5 +1,6 @@
#include <SDL_main.h> #include <SDL.h>
#include <SDL2pp/SDL.hh>
#include <SDL2pp/EventWait.hh> #include <SDL2pp/EventWait.hh>
#include "testing.h" #include "testing.h"
@ -8,6 +9,8 @@ using namespace SDL2pp;
using namespace SDL2pp::Event; using namespace SDL2pp::Event;
BEGIN_TEST(int, char*[]) BEGIN_TEST(int, char*[])
const SDL sdl(SDL_INIT_EVENTS);
// Test wait event with no timeout // Test wait event with no timeout
{ {
SDL_Event expected; SDL_Event expected;