summaryrefslogtreecommitdiff
path: root/src/unittests/configuration.cc
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-09-12 18:47:07 +0300
committerAndrei Karas <akaras@inbox.ru>2017-09-12 18:47:07 +0300
commitd88285ef4d2b624a0c6a8ef5c2e157ed0248838e (patch)
tree21c77124f72c023590f0d1b0426eb9357305201e /src/unittests/configuration.cc
parent429a545dbd5d0fa992394cf7f4c83d5e972a14b2 (diff)
downloadplus-d88285ef4d2b624a0c6a8ef5c2e157ed0248838e.tar.gz
plus-d88285ef4d2b624a0c6a8ef5c2e157ed0248838e.tar.bz2
plus-d88285ef4d2b624a0c6a8ef5c2e157ed0248838e.tar.xz
plus-d88285ef4d2b624a0c6a8ef5c2e157ed0248838e.zip
Create logger in unit tests before other code.
This need because now sdl may raise error or assert almost at start.
Diffstat (limited to 'src/unittests/configuration.cc')
-rw-r--r--src/unittests/configuration.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/unittests/configuration.cc b/src/unittests/configuration.cc
index cdb28eddb..03561ed42 100644
--- a/src/unittests/configuration.cc
+++ b/src/unittests/configuration.cc
@@ -23,12 +23,9 @@
#include "configuration.h"
#include "configmanager.h"
#include "dirs.h"
-#include "logger.h"
#include "listeners/configlistener.h"
-#include "utils/delete2.h"
-
#include "debug.h"
namespace
@@ -48,8 +45,6 @@ namespace
TEST_CASE("configuration tests", "configuration")
{
- logger = new Logger();
-
Dirs::initRootDir();
Dirs::initHomeDir();
@@ -295,6 +290,4 @@ TEST_CASE("configuration tests", "configuration")
REQUIRE(config.getStringValue(key) == "0");
REQUIRE(config.getBoolValue(key) == false);
}
-
- delete2(logger);
}