summaryrefslogtreecommitdiff
path: root/src/unittests/fs/virtfs/zip.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/fs/virtfs/zip.cc
parent429a545dbd5d0fa992394cf7f4c83d5e972a14b2 (diff)
downloadmv-d88285ef4d2b624a0c6a8ef5c2e157ed0248838e.tar.gz
mv-d88285ef4d2b624a0c6a8ef5c2e157ed0248838e.tar.bz2
mv-d88285ef4d2b624a0c6a8ef5c2e157ed0248838e.tar.xz
mv-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/fs/virtfs/zip.cc')
-rw-r--r--src/unittests/fs/virtfs/zip.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/unittests/fs/virtfs/zip.cc b/src/unittests/fs/virtfs/zip.cc
index 50e0b2672..17491835e 100644
--- a/src/unittests/fs/virtfs/zip.cc
+++ b/src/unittests/fs/virtfs/zip.cc
@@ -29,15 +29,12 @@
#include "fs/virtfs/zipreader.h"
#include "fs/virtfs/ziplocalheader.h"
-#include "utils/delete2.h"
-
#include "debug.h"
extern const char *dirSeparator;
TEST_CASE("Zip readArchiveInfo", "")
{
- logger = new Logger();
std::string name("data/test/test.zip");
std::string prefix;
const std::string sep = dirSeparator;
@@ -166,13 +163,10 @@ TEST_CASE("Zip readArchiveInfo", "")
delete entry;
}
-
- delete2(logger);
}
TEST_CASE("Zip readCompressedFile", "")
{
- logger = new Logger();
std::string name("data/test/test.zip");
std::string prefix;
if (Files::existsLocal(name) == false)
@@ -196,13 +190,10 @@ TEST_CASE("Zip readCompressedFile", "")
delete [] buf;
delete entry;
}
-
- delete2(logger);
}
TEST_CASE("Zip readFile", "")
{
- logger = new Logger();
std::string name("data/test/test.zip");
std::string prefix;
if (Files::existsLocal(name) == false)
@@ -289,6 +280,4 @@ TEST_CASE("Zip readFile", "")
}
delete entry;
}
-
- delete2(logger);
}