From d88285ef4d2b624a0c6a8ef5c2e157ed0248838e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 12 Sep 2017 18:47:07 +0300 Subject: Create logger in unit tests before other code. This need because now sdl may raise error or assert almost at start. --- src/unittests/utils/stringutils.cc | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/unittests/utils/stringutils.cc') diff --git a/src/unittests/utils/stringutils.cc b/src/unittests/utils/stringutils.cc index 128b07078..e69ebecba 100644 --- a/src/unittests/utils/stringutils.cc +++ b/src/unittests/utils/stringutils.cc @@ -21,13 +21,11 @@ #include "unittests/unittests.h" #include "configuration.h" -#include "logger.h" #include "const/utils/utf8.h" #include "fs/virtfs/fs.h" -#include "utils/delete2.h" #include "utils/dtor.h" #include "resources/iteminfo.h" @@ -1486,7 +1484,6 @@ TEST_CASE("stringuntils timeDiffToString", "") TEST_CASE("stringuntils replaceItemLinks", "") { - logger = new Logger(); VirtFs::mountDirSilent("data", Append_false); VirtFs::mountDirSilent("../data", Append_false); VirtFs::mountDirSilent("data/test", Append_false); @@ -1715,6 +1712,4 @@ TEST_CASE("stringuntils replaceItemLinks", "") VirtFs::unmountDirSilent("../data"); VirtFs::unmountDirSilent("data/test"); VirtFs::unmountDirSilent("../data/test"); - delete2(logger); -// VirtFs::deinit(); } -- cgit v1.2.3-70-g09d2