From d88285ef4d2b624a0c6a8ef5c2e157ed0248838e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 12 Sep 2017 18:47:07 +0300 Subject: Create logger in unit tests before other code. This need because now sdl may raise error or assert almost at start. --- src/maingui.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/maingui.cpp') diff --git a/src/maingui.cpp b/src/maingui.cpp index bb1abf5ae..fc3df1b98 100644 --- a/src/maingui.cpp +++ b/src/maingui.cpp @@ -52,6 +52,8 @@ PRAGMA48(GCC diagnostic pop) #endif // SDL_VERSIONNUM #ifdef UNITTESTS +#include "logger.h" + #include "utils/cpu.h" #include "utils/sdlhelper.h" #include "resources/dye/dyepalette.h" @@ -151,6 +153,7 @@ int mainGui(int argc, char *argv[]) int main(int argc, char *argv[]) { + logger = new Logger; SDL::initLogger(); VirtFs::init(argv[0]); Cpu::detect(); -- cgit v1.2.3-60-g2f50