summaryrefslogtreecommitdiff
path: root/src/unittests/sdl.cc
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-14 02:52:41 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-14 02:52:41 +0300
commit4133ef1e7821cae6205d4ee5a8e3277eec9fe540 (patch)
tree3666e5d95da67dbe7ef739b41f78170885be97d4 /src/unittests/sdl.cc
parentbb980aaf7a61f8d0fe03f7def03795d5f5d8d2a0 (diff)
downloadmanaverse-4133ef1e7821cae6205d4ee5a8e3277eec9fe540.tar.gz
manaverse-4133ef1e7821cae6205d4ee5a8e3277eec9fe540.tar.bz2
manaverse-4133ef1e7821cae6205d4ee5a8e3277eec9fe540.tar.xz
manaverse-4133ef1e7821cae6205d4ee5a8e3277eec9fe540.zip
Fix unit tests error with undefined config variable.
Diffstat (limited to 'src/unittests/sdl.cc')
-rw-r--r--src/unittests/sdl.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/unittests/sdl.cc b/src/unittests/sdl.cc
index 3994ea7f4..8502eeed6 100644
--- a/src/unittests/sdl.cc
+++ b/src/unittests/sdl.cc
@@ -69,6 +69,12 @@ TEST_CASE("sdl tests", "sdl")
VirtFs::mountDirSilent("data", Append_false);
VirtFs::mountDirSilent("../data", Append_false);
+ Dirs::initRootDir();
+ Dirs::initHomeDir();
+
+ setBrandingDefaults(branding);
+ ConfigManager::initConfiguration();
+
#ifdef USE_SDL2
imageHelper = new SurfaceImageHelper;
@@ -85,12 +91,6 @@ TEST_CASE("sdl tests", "sdl")
userPalette = new UserPalette;
config.setValue("fontSize", 16);
- Dirs::initRootDir();
- Dirs::initHomeDir();
-
- setBrandingDefaults(branding);
- ConfigManager::initConfiguration();
-
theme = new Theme;
Theme::selectSkin();