summaryrefslogtreecommitdiff
path: root/src/unittests/resources/dye
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/resources/dye
parent429a545dbd5d0fa992394cf7f4c83d5e972a14b2 (diff)
downloadmanaverse-d88285ef4d2b624a0c6a8ef5c2e157ed0248838e.tar.gz
manaverse-d88285ef4d2b624a0c6a8ef5c2e157ed0248838e.tar.bz2
manaverse-d88285ef4d2b624a0c6a8ef5c2e157ed0248838e.tar.xz
manaverse-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/resources/dye')
-rw-r--r--src/unittests/resources/dye/dye.cc3
-rw-r--r--src/unittests/resources/dye/dyepalette.cc3
2 files changed, 0 insertions, 6 deletions
diff --git a/src/unittests/resources/dye/dye.cc b/src/unittests/resources/dye/dye.cc
index 499e570ea..ada0f5d40 100644
--- a/src/unittests/resources/dye/dye.cc
+++ b/src/unittests/resources/dye/dye.cc
@@ -1958,7 +1958,6 @@ TEST_CASE("Dye real dye", "")
client = new Client;
SDL_Init(SDL_INIT_VIDEO);
- logger = new Logger();
VirtFs::mountDirSilent("data", Append_false);
VirtFs::mountDirSilent("../data", Append_false);
VirtFs::mountDirSilent("data/test", Append_false);
@@ -2012,6 +2011,4 @@ TEST_CASE("Dye real dye", "")
VirtFs::unmountDirSilent("../data");
VirtFs::unmountDirSilent("data/test");
VirtFs::unmountDirSilent("../data/test");
- delete2(logger);
-// VirtFs::deinit();
}
diff --git a/src/unittests/resources/dye/dyepalette.cc b/src/unittests/resources/dye/dyepalette.cc
index 7c49f02c1..47f7266a4 100644
--- a/src/unittests/resources/dye/dyepalette.cc
+++ b/src/unittests/resources/dye/dyepalette.cc
@@ -60,7 +60,6 @@ TEST_CASE("DyePalette tests", "")
client = new Client;
XML::initXML();
SDL_Init(SDL_INIT_VIDEO);
- logger = new Logger();
VirtFs::mountDirSilent("data", Append_false);
VirtFs::mountDirSilent("../data", Append_false);
VirtFs::mountDirSilent("data/test", Append_false);
@@ -397,6 +396,4 @@ TEST_CASE("DyePalette tests", "")
VirtFs::unmountDirSilent("../data");
VirtFs::unmountDirSilent("data/test");
VirtFs::unmountDirSilent("../data/test");
- delete2(logger);
-// VirtFs::deinit();
}