summaryrefslogtreecommitdiff
path: root/src/unittests/utils/checkutils.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/utils/checkutils.cc
parent429a545dbd5d0fa992394cf7f4c83d5e972a14b2 (diff)
downloadmanaplus-d88285ef4d2b624a0c6a8ef5c2e157ed0248838e.tar.gz
manaplus-d88285ef4d2b624a0c6a8ef5c2e157ed0248838e.tar.bz2
manaplus-d88285ef4d2b624a0c6a8ef5c2e157ed0248838e.tar.xz
manaplus-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/checkutils.cc')
-rw-r--r--src/unittests/utils/checkutils.cc5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/unittests/utils/checkutils.cc b/src/unittests/utils/checkutils.cc
index c54dcf9fc..5cfec4e83 100644
--- a/src/unittests/utils/checkutils.cc
+++ b/src/unittests/utils/checkutils.cc
@@ -21,7 +21,6 @@
#include "unittests/unittests.h"
#include "utils/checkutils.h"
-#include "utils/delete2.h"
#include "debug.h"
@@ -83,8 +82,6 @@ static bool testFailAlways2()
TEST_CASE("CheckUtils", "")
{
- logger = new Logger;
-
SECTION("reportFalse")
{
REQUIRE(reportFalseReal(false) == false);
@@ -174,6 +171,4 @@ PRAGMA4(GCC diagnostic pop)
testReturnNullptrV(reinterpret_cast<void*>(1));
REQUIRE(flag == true);
}
-
- delete2(logger);
}