X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=tst%2Ftest.cpp;h=f95ead372d3ce212faa3b17872aae9dd6a5fa38e;hb=ae99cb2cdafb6f59ab82e598331ce0951b32bce2;hp=180b0edca640286a520c767d37a74f2a4547eea0;hpb=c592d2d6e230851bd7ed74d98f9046469f4086fd;p=blank.git diff --git a/tst/test.cpp b/tst/test.cpp index 180b0ed..f95ead3 100644 --- a/tst/test.cpp +++ b/tst/test.cpp @@ -1,5 +1,3 @@ -#include "app/init.hpp" - #include #include @@ -8,17 +6,12 @@ using CppUnit::TextUi::TestRunner; int main(int, char **) { - blank::InitSDL sdl; - blank::InitGL gl; - blank::Window win; - blank::GLContext ctx(win.CreateContext()); - blank::InitGLEW glew; - TestRunner runner; TestFactoryRegistry ®istry = TestFactoryRegistry::getRegistry(); runner.addTest(registry.makeTest()); - runner.run(); - - return 0; - + if (runner.run()) { + return 0; + } else { + return 1; + } }