diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-09-12 18:47:07 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-09-12 18:47:07 +0300 |
commit | d88285ef4d2b624a0c6a8ef5c2e157ed0248838e (patch) | |
tree | 21c77124f72c023590f0d1b0426eb9357305201e /src/unittests/utils/xmlutils.cc | |
parent | 429a545dbd5d0fa992394cf7f4c83d5e972a14b2 (diff) | |
download | manaverse-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/utils/xmlutils.cc')
-rw-r--r-- | src/unittests/utils/xmlutils.cc | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/unittests/utils/xmlutils.cc b/src/unittests/utils/xmlutils.cc index bff998057..e665cb6e5 100644 --- a/src/unittests/utils/xmlutils.cc +++ b/src/unittests/utils/xmlutils.cc @@ -51,7 +51,6 @@ TEST_CASE("xmlutils readXmlIntVector 1", "") client = new Client; XML::initXML(); - logger = new Logger(); VirtFs::mountDirSilent("data", Append_false); VirtFs::mountDirSilent("../data", Append_false); @@ -102,8 +101,6 @@ TEST_CASE("xmlutils readXmlIntVector 1", "") ResourceManager::deleteInstance(); VirtFs::unmountDirSilent("data"); VirtFs::unmountDirSilent("../data"); - delete2(logger); -// VirtFs::deinit(); } TEST_CASE("xmlutils readXmlStringMap 1", "") @@ -112,7 +109,6 @@ TEST_CASE("xmlutils readXmlStringMap 1", "") client = new Client; XML::initXML(); - logger = new Logger(); VirtFs::mountDirSilent("data", Append_false); VirtFs::mountDirSilent("../data", Append_false); @@ -162,8 +158,6 @@ TEST_CASE("xmlutils readXmlStringMap 1", "") ResourceManager::deleteInstance(); VirtFs::unmountDirSilent("data"); VirtFs::unmountDirSilent("../data"); - delete2(logger); -// VirtFs::deinit(); } TEST_CASE("xmlutils readXmlIntMap 1", "") @@ -172,7 +166,6 @@ TEST_CASE("xmlutils readXmlIntMap 1", "") client = new Client; XML::initXML(); - logger = new Logger(); VirtFs::mountDirSilent("data", Append_false); VirtFs::mountDirSilent("../data", Append_false); VirtFs::mountDirSilent("data/test", Append_false); @@ -226,6 +219,4 @@ TEST_CASE("xmlutils readXmlIntMap 1", "") VirtFs::unmountDirSilent("../data/test"); VirtFs::unmountDirSilent("data"); VirtFs::unmountDirSilent("../data"); - delete2(logger); -// VirtFs::deinit(); } |