+#define GTEST_HAS_EXCEPTIONS 0
+
#include <SDL/SDL.h>
#include "gtest/gtest.h"
SDL_WM_SetCaption("OpenGL window for unit test", NULL);
testing::InitGoogleTest(&argc, argv);
- return RUN_ALL_TESTS();
+ int err = RUN_ALL_TESTS();
+ SDL_Quit();
+ exit(err);
}