summaryrefslogtreecommitdiff
path: root/src/unittests/endian.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/endian.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/endian.cc')
-rw-r--r--src/unittests/endian.cc5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/unittests/endian.cc b/src/unittests/endian.cc
index 3d0c66051..ef03a1c2d 100644
--- a/src/unittests/endian.cc
+++ b/src/unittests/endian.cc
@@ -22,8 +22,6 @@
#include "logger.h"
-#include "utils/delete2.h"
-
PRAGMA48(GCC diagnostic push)
PRAGMA48(GCC diagnostic ignored "-Wshadow")
#include <SDL_endian.h>
@@ -51,7 +49,6 @@ TEST_CASE("endian test", "")
data.byteData[1] = 0x20;
data.byteData[2] = 0x30;
data.byteData[3] = 0x40;
- logger = new Logger();
#if SDL_BYTEORDER == SDL_BIG_ENDIAN
REQUIRE(data.dwordData == 0x10203040);
logger->log("big endian detected");
@@ -60,6 +57,4 @@ TEST_CASE("endian test", "")
REQUIRE(data.dwordData == 0x40302010);
logger->log("little endian detected");
#endif // SDL_BYTEORDER == SDL_BIG_ENDIAN
-
- delete2(logger);
}