diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-09-14 02:52:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-09-14 02:52:41 +0300 |
commit | 4133ef1e7821cae6205d4ee5a8e3277eec9fe540 (patch) | |
tree | 3666e5d95da67dbe7ef739b41f78170885be97d4 /src/unittests/resources/map/maplayer/drawfringenormal.cc | |
parent | bb980aaf7a61f8d0fe03f7def03795d5f5d8d2a0 (diff) | |
download | plus-4133ef1e7821cae6205d4ee5a8e3277eec9fe540.tar.gz plus-4133ef1e7821cae6205d4ee5a8e3277eec9fe540.tar.bz2 plus-4133ef1e7821cae6205d4ee5a8e3277eec9fe540.tar.xz plus-4133ef1e7821cae6205d4ee5a8e3277eec9fe540.zip |
Fix unit tests error with undefined config variable.
Diffstat (limited to 'src/unittests/resources/map/maplayer/drawfringenormal.cc')
-rw-r--r-- | src/unittests/resources/map/maplayer/drawfringenormal.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/unittests/resources/map/maplayer/drawfringenormal.cc b/src/unittests/resources/map/maplayer/drawfringenormal.cc index 15990d5f6..372f602b0 100644 --- a/src/unittests/resources/map/maplayer/drawfringenormal.cc +++ b/src/unittests/resources/map/maplayer/drawfringenormal.cc @@ -58,6 +58,13 @@ TEST_CASE("MapLayer drawFringe normal", "") VirtFs::mountDirSilent("../data", Append_false); imageHelper = new SDLImageHelper; + + Dirs::initRootDir(); + Dirs::initHomeDir(); + + setBrandingDefaults(branding); + ConfigManager::initConfiguration(); + #ifdef USE_SDL2 SDLImageHelper::setRenderer(graphicsManager.createRenderer( graphicsManager.createWindow(640, 480, 0, @@ -67,12 +74,6 @@ TEST_CASE("MapLayer drawFringe normal", "") graphicsManager.createWindow(640, 480, 0, SDL_ANYFORMAT | SDL_SWSURFACE); #endif // USE_SDL2 - Dirs::initRootDir(); - Dirs::initHomeDir(); - - setBrandingDefaults(branding); - ConfigManager::initConfiguration(); - theme = new Theme; Theme::selectSkin(); |