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/integrity.cc | |
parent | bb980aaf7a61f8d0fe03f7def03795d5f5d8d2a0 (diff) | |
download | manaplus-4133ef1e7821cae6205d4ee5a8e3277eec9fe540.tar.gz manaplus-4133ef1e7821cae6205d4ee5a8e3277eec9fe540.tar.bz2 manaplus-4133ef1e7821cae6205d4ee5a8e3277eec9fe540.tar.xz manaplus-4133ef1e7821cae6205d4ee5a8e3277eec9fe540.zip |
Fix unit tests error with undefined config variable.
Diffstat (limited to 'src/unittests/integrity.cc')
-rw-r--r-- | src/unittests/integrity.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/unittests/integrity.cc b/src/unittests/integrity.cc index e45eb9f4e..3cb4f3dc5 100644 --- a/src/unittests/integrity.cc +++ b/src/unittests/integrity.cc @@ -122,6 +122,12 @@ TEST_CASE("integrity tests", "integrity") VirtFs::mountDirSilent("data", Append_false); VirtFs::mountDirSilent("../data", Append_false); + Dirs::initRootDir(); + Dirs::initHomeDir(); + + setBrandingDefaults(branding); + ConfigManager::initConfiguration(); + #ifdef USE_SDL2 imageHelper = new SurfaceImageHelper; @@ -137,12 +143,6 @@ TEST_CASE("integrity tests", "integrity") userPalette = new UserPalette; - Dirs::initRootDir(); - Dirs::initHomeDir(); - - setBrandingDefaults(branding); - ConfigManager::initConfiguration(); - config.setValue("fontSize", 16); theme = new Theme; Theme::selectSkin(); |