From 4133ef1e7821cae6205d4ee5a8e3277eec9fe540 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 14 Sep 2017 02:52:41 +0300 Subject: Fix unit tests error with undefined config variable. --- src/unittests/resources/resourcemanager/resourcemanager.cc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/unittests/resources/resourcemanager/resourcemanager.cc') diff --git a/src/unittests/resources/resourcemanager/resourcemanager.cc b/src/unittests/resources/resourcemanager/resourcemanager.cc index 9552089fd..4b67af82e 100644 --- a/src/unittests/resources/resourcemanager/resourcemanager.cc +++ b/src/unittests/resources/resourcemanager/resourcemanager.cc @@ -101,6 +101,13 @@ TEST_CASE("resourcemanager", "resourcemanager") 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, @@ -112,12 +119,6 @@ TEST_CASE("resourcemanager", "resourcemanager") userPalette = new UserPalette; - Dirs::initRootDir(); - Dirs::initHomeDir(); - - setBrandingDefaults(branding); - ConfigManager::initConfiguration(); - theme = new Theme; Theme::selectSkin(); -- cgit v1.2.3-70-g09d2