mirror of
https://github.com/libSDL2pp/libSDL2pp.git
synced 2025-08-03 10:55:57 -04:00
Test SDL init/deinit
This commit is contained in:
parent
6da3e4e71f
commit
52e142ce57
@ -52,6 +52,20 @@ public:
|
||||
|
||||
BEGIN_TEST(int, char*[])
|
||||
SDL sdl(SDL_INIT_VIDEO);
|
||||
|
||||
{
|
||||
// SDL initialization stuff
|
||||
EXPECT_TRUE(sdl.WasInit(SDL_INIT_VIDEO));
|
||||
|
||||
sdl.QuitSubSystem(SDL_INIT_VIDEO);
|
||||
|
||||
EXPECT_TRUE(!sdl.WasInit(SDL_INIT_VIDEO));
|
||||
|
||||
sdl.InitSubSystem(SDL_INIT_VIDEO);
|
||||
|
||||
EXPECT_TRUE(sdl.WasInit(SDL_INIT_VIDEO));
|
||||
}
|
||||
|
||||
Window window("libSDL2pp test", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 320, 240, 0);
|
||||
Renderer renderer(window, -1, SDL_RENDERER_ACCELERATED);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user