summaryrefslogtreecommitdiff
path: root/src/fs
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-18 22:51:52 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-18 22:53:01 +0300
commit40de3bee0278d6584561a827123bc342934adccb (patch)
tree460ba68f29ec25377ef1971989c4c46e507ea3da /src/fs
parentdffd0a4a8e99196ad27f8fde2430b09dd29cac57 (diff)
downloadplus-40de3bee0278d6584561a827123bc342934adccb.tar.gz
plus-40de3bee0278d6584561a827123bc342934adccb.tar.bz2
plus-40de3bee0278d6584561a827123bc342934adccb.tar.xz
plus-40de3bee0278d6584561a827123bc342934adccb.zip
Add support for additional unit test library doctest.
Diffstat (limited to 'src/fs')
-rw-r--r--src/fs/files_unittest.cc16
-rw-r--r--src/fs/virtfs/virtfs1_unittest.cc106
-rw-r--r--src/fs/virtfs/virtfs_unittest.cc64
-rw-r--r--src/fs/virtfs/zip_unittest.cc6
4 files changed, 100 insertions, 92 deletions
diff --git a/src/fs/files_unittest.cc b/src/fs/files_unittest.cc
index 856162780..0a4391f32 100644
--- a/src/fs/files_unittest.cc
+++ b/src/fs/files_unittest.cc
@@ -34,7 +34,7 @@
#include "debug.h"
-TEST_CASE("Files renameFile")
+TEST_CASE("Files renameFile", "")
{
logger = new Logger();
VirtFs::mountDirSilent("data", Append_false);
@@ -72,7 +72,7 @@ TEST_CASE("Files renameFile")
// VirtFs::deinit();
}
-TEST_CASE("Files existsLocal")
+TEST_CASE("Files existsLocal", "")
{
logger = new Logger();
VirtFs::mountDirSilent("data", Append_false);
@@ -87,7 +87,7 @@ TEST_CASE("Files existsLocal")
// VirtFs::deinit();
}
-TEST_CASE("Files loadTextFileString")
+TEST_CASE("Files loadTextFileString", "")
{
logger = new Logger();
VirtFs::mountDirSilent("data", Append_false);
@@ -101,7 +101,7 @@ TEST_CASE("Files loadTextFileString")
// VirtFs::deinit();
}
-TEST_CASE("Files loadTextFile")
+TEST_CASE("Files loadTextFile", "")
{
logger = new Logger();
VirtFs::mountDirSilent("data", Append_false);
@@ -119,7 +119,7 @@ TEST_CASE("Files loadTextFile")
// VirtFs::deinit();
}
-TEST_CASE("Files saveTextFile")
+TEST_CASE("Files saveTextFile", "")
{
logger = new Logger();
VirtFs::mountDirSilent("data", Append_false);
@@ -144,7 +144,7 @@ TEST_CASE("Files saveTextFile")
// VirtFs::deinit();
}
-TEST_CASE("Files copyFile1")
+TEST_CASE("Files copyFile1", "")
{
logger = new Logger();
VirtFs::mountDirSilent("data", Append_false);
@@ -176,7 +176,7 @@ TEST_CASE("Files copyFile1")
// VirtFs::deinit();
}
-TEST_CASE("Files loadTextFileLocal")
+TEST_CASE("Files loadTextFileLocal", "")
{
logger = new Logger();
VirtFs::mountDirSilent("data", Append_false);
@@ -200,7 +200,7 @@ TEST_CASE("Files loadTextFileLocal")
// VirtFs::deinit();
}
-TEST_CASE("Files getFilesInDir")
+TEST_CASE("Files getFilesInDir", "")
{
logger = new Logger();
VirtFs::mountDirSilent("data", Append_false);
diff --git a/src/fs/virtfs/virtfs1_unittest.cc b/src/fs/virtfs/virtfs1_unittest.cc
index d7bf52006..5d48e4238 100644
--- a/src/fs/virtfs/virtfs1_unittest.cc
+++ b/src/fs/virtfs/virtfs1_unittest.cc
@@ -33,9 +33,13 @@
#include <SDL_rwops.h>
+#ifndef UNITTESTS_CATCH
+#include <algorithm>
+#endif // UNITTESTS_CATCH
+
#include "debug.h"
-TEST_CASE("VirtFs1 getEntries")
+TEST_CASE("VirtFs1 getEntries", "")
{
VirtFs::init(".");
REQUIRE(VirtFs::getEntries().empty());
@@ -43,14 +47,14 @@ TEST_CASE("VirtFs1 getEntries")
VirtFs::deinit();
}
-TEST_CASE("VirtFs1 getBaseDir")
+TEST_CASE("VirtFs1 getBaseDir", "")
{
VirtFs::init(".");
REQUIRE(VirtFs::getBaseDir() != nullptr);
VirtFs::deinit();
}
-TEST_CASE("VirtFs1 mountDir")
+TEST_CASE("VirtFs1 mountDir", "")
{
VirtFs::init(".");
logger = new Logger();
@@ -491,7 +495,7 @@ TEST_CASE("VirtFs1 mountDir")
delete2(logger);
}
-TEST_CASE("VirtFs1 mountZip")
+TEST_CASE("VirtFs1 mountZip", "")
{
VirtFs::init(".");
logger = new Logger();
@@ -788,7 +792,7 @@ TEST_CASE("VirtFs1 mountZip")
delete2(logger);
}
-TEST_CASE("VirtFs1 unmount")
+TEST_CASE("VirtFs1 unmount", "")
{
VirtFs::init(".");
logger = new Logger();
@@ -1158,7 +1162,7 @@ TEST_CASE("VirtFs1 unmount")
delete2(logger);
}
-TEST_CASE("VirtFs1 exists1")
+TEST_CASE("VirtFs1 exists1", "")
{
VirtFs::init(".");
logger = new Logger();
@@ -1218,7 +1222,7 @@ TEST_CASE("VirtFs1 exists1")
delete2(logger);
}
-TEST_CASE("VirtFs1 exists2")
+TEST_CASE("VirtFs1 exists2", "")
{
VirtFs::init(".");
logger = new Logger();
@@ -1315,7 +1319,7 @@ static void removeTemp(StringVect &restrict list)
}
}
-TEST_CASE("VirtFs1 getRealDir1")
+TEST_CASE("VirtFs1 getRealDir1", "")
{
VirtFs::init(".");
logger = new Logger();
@@ -1397,7 +1401,7 @@ TEST_CASE("VirtFs1 getRealDir1")
delete2(logger);
}
-TEST_CASE("VirtFs1 getRealDir2")
+TEST_CASE("VirtFs1 getRealDir2", "")
{
VirtFs::init(".");
logger = new Logger();
@@ -1440,7 +1444,7 @@ TEST_CASE("VirtFs1 getRealDir2")
delete2(logger);
}
-TEST_CASE("VirtFs1 getRealDir3")
+TEST_CASE("VirtFs1 getRealDir3", "")
{
VirtFs::init(".");
logger = new Logger();
@@ -1525,7 +1529,7 @@ static bool inList(StringVect list,
return false;
}
-TEST_CASE("VirtFs1 enumerateFiles1")
+TEST_CASE("VirtFs1 enumerateFiles1", "")
{
VirtFs::init(".");
logger = new Logger;
@@ -1570,7 +1574,7 @@ TEST_CASE("VirtFs1 enumerateFiles1")
delete2(logger);
}
-TEST_CASE("VirtFs1 enumerateFiles2")
+TEST_CASE("VirtFs1 enumerateFiles2", "")
{
VirtFs::init(".");
logger = new Logger;
@@ -1591,7 +1595,7 @@ TEST_CASE("VirtFs1 enumerateFiles2")
delete2(logger);
}
-TEST_CASE("VirtFs1 enumerateFiles3")
+TEST_CASE("VirtFs1 enumerateFiles3", "")
{
VirtFs::init(".");
logger = new Logger;
@@ -1616,7 +1620,7 @@ TEST_CASE("VirtFs1 enumerateFiles3")
delete2(logger);
}
-TEST_CASE("VirtFsZip enumerateFiles4")
+TEST_CASE("VirtFsZip enumerateFiles4", "")
{
VirtFs::init(".");
logger = new Logger;
@@ -1641,7 +1645,7 @@ TEST_CASE("VirtFsZip enumerateFiles4")
delete2(logger);
}
-TEST_CASE("VirtFsZip enumerateFiles5")
+TEST_CASE("VirtFsZip enumerateFiles5", "")
{
VirtFs::init(".");
logger = new Logger;
@@ -1677,7 +1681,7 @@ TEST_CASE("VirtFsZip enumerateFiles5")
delete2(logger);
}
-TEST_CASE("VirtFsZip enumerateFiles6")
+TEST_CASE("VirtFsZip enumerateFiles6", "")
{
VirtFs::init(".");
logger = new Logger;
@@ -1701,7 +1705,7 @@ TEST_CASE("VirtFsZip enumerateFiles6")
delete2(logger);
}
-TEST_CASE("VirtFsZip enumerateFiles7")
+TEST_CASE("VirtFsZip enumerateFiles7", "")
{
VirtFs::init(".");
logger = new Logger;
@@ -1728,7 +1732,7 @@ TEST_CASE("VirtFsZip enumerateFiles7")
delete2(logger);
}
-TEST_CASE("VirtFsZip enumerateFiles8")
+TEST_CASE("VirtFsZip enumerateFiles8", "")
{
VirtFs::init(".");
logger = new Logger;
@@ -1760,7 +1764,7 @@ TEST_CASE("VirtFsZip enumerateFiles8")
delete2(logger);
}
-TEST_CASE("VirtFsZip enumerateFiles9")
+TEST_CASE("VirtFsZip enumerateFiles9", "")
{
VirtFs::init(".");
logger = new Logger;
@@ -1790,7 +1794,7 @@ TEST_CASE("VirtFsZip enumerateFiles9")
delete2(logger);
}
-TEST_CASE("VirtFsZip enumerateFiles10")
+TEST_CASE("VirtFsZip enumerateFiles10", "")
{
VirtFs::init(".");
logger = new Logger;
@@ -1817,7 +1821,7 @@ TEST_CASE("VirtFsZip enumerateFiles10")
delete2(logger);
}
-TEST_CASE("VirtFsZip enumerateFiles11")
+TEST_CASE("VirtFsZip enumerateFiles11", "")
{
VirtFs::init(".");
logger = new Logger;
@@ -1844,7 +1848,7 @@ TEST_CASE("VirtFsZip enumerateFiles11")
delete2(logger);
}
-TEST_CASE("VirtFs1 enumerateFiles12")
+TEST_CASE("VirtFs1 enumerateFiles12", "")
{
VirtFs::init(".");
logger = new Logger;
@@ -1867,7 +1871,7 @@ TEST_CASE("VirtFs1 enumerateFiles12")
delete2(logger);
}
-TEST_CASE("VirtFs1 enumerateFiles13")
+TEST_CASE("VirtFs1 enumerateFiles13", "")
{
VirtFs::init(".");
logger = new Logger;
@@ -1891,7 +1895,7 @@ TEST_CASE("VirtFs1 enumerateFiles13")
}
-TEST_CASE("VirtFs1 isDirectory1")
+TEST_CASE("VirtFs1 isDirectory1", "")
{
VirtFs::init(".");
logger = new Logger();
@@ -1955,7 +1959,7 @@ TEST_CASE("VirtFs1 isDirectory1")
delete2(logger);
}
-TEST_CASE("VirtFs1 isDirectory2")
+TEST_CASE("VirtFs1 isDirectory2", "")
{
VirtFs::init(".");
logger = new Logger();
@@ -2040,7 +2044,7 @@ TEST_CASE("VirtFs1 isDirectory2")
delete2(logger);
}
-TEST_CASE("VirtFs1 isDirectory3")
+TEST_CASE("VirtFs1 isDirectory3", "")
{
VirtFs::init(".");
logger = new Logger();
@@ -2072,7 +2076,7 @@ TEST_CASE("VirtFs1 isDirectory3")
delete2(logger);
}
-TEST_CASE("VirtFs1 isDirectory4")
+TEST_CASE("VirtFs1 isDirectory4", "")
{
VirtFs::init(".");
logger = new Logger();
@@ -2109,7 +2113,7 @@ TEST_CASE("VirtFs1 isDirectory4")
delete2(logger);
}
-TEST_CASE("VirtFs1 openRead1")
+TEST_CASE("VirtFs1 openRead1", "")
{
VirtFs::init(".");
logger = new Logger();
@@ -2173,7 +2177,7 @@ TEST_CASE("VirtFs1 openRead1")
delete2(logger);
}
-TEST_CASE("VirtFs1 openRead2")
+TEST_CASE("VirtFs1 openRead2", "")
{
VirtFs::init(".");
logger = new Logger();
@@ -2252,7 +2256,7 @@ TEST_CASE("VirtFs1 openRead2")
delete2(logger);
}
-TEST_CASE("VirtFs1 openRead3")
+TEST_CASE("VirtFs1 openRead3", "")
{
VirtFs::init(".");
logger = new Logger();
@@ -2330,7 +2334,7 @@ TEST_CASE("VirtFs1 openRead3")
delete2(logger);
}
-TEST_CASE("VirtFs1 openRead4")
+TEST_CASE("VirtFs1 openRead4", "")
{
VirtFs::init(".");
logger = new Logger();
@@ -2411,7 +2415,7 @@ TEST_CASE("VirtFs1 openRead4")
delete2(logger);
}
-TEST_CASE("VirtFs1 permitLinks")
+TEST_CASE("VirtFs1 permitLinks", "")
{
VirtFs::init(".");
logger = new Logger();
@@ -2450,7 +2454,7 @@ TEST_CASE("VirtFs1 permitLinks")
delete2(logger);
}
-TEST_CASE("VirtFs1 read1")
+TEST_CASE("VirtFs1 read1", "")
{
VirtFs::init(".");
logger = new Logger();
@@ -2492,7 +2496,7 @@ TEST_CASE("VirtFs1 read1")
delete2(logger);
}
-TEST_CASE("VirtFs1 read2")
+TEST_CASE("VirtFs1 read2", "")
{
VirtFs::init(".");
logger = new Logger();
@@ -2623,7 +2627,7 @@ TEST_CASE("VirtFs1 read2")
delete2(logger);
}
-TEST_CASE("VirtFs1 loadFile1")
+TEST_CASE("VirtFs1 loadFile1", "")
{
VirtFs::init(".");
int fileSize = 0;
@@ -2647,7 +2651,7 @@ TEST_CASE("VirtFs1 loadFile1")
delete2(logger);
}
-TEST_CASE("VirtFs1 loadFile2")
+TEST_CASE("VirtFs1 loadFile2", "")
{
VirtFs::init(".");
int fileSize = 0;
@@ -2685,7 +2689,7 @@ TEST_CASE("VirtFs1 loadFile2")
delete2(logger);
}
-TEST_CASE("VirtFs1 loadFile3")
+TEST_CASE("VirtFs1 loadFile3", "")
{
VirtFs::init(".");
int fileSize = 0;
@@ -2711,7 +2715,7 @@ TEST_CASE("VirtFs1 loadFile3")
delete2(logger);
}
-TEST_CASE("VirtFs1 loadFile4")
+TEST_CASE("VirtFs1 loadFile4", "")
{
VirtFs::init(".");
int fileSize = 0;
@@ -2751,7 +2755,7 @@ TEST_CASE("VirtFs1 loadFile4")
delete2(logger);
}
-TEST_CASE("VirtFs1 rwops_read1")
+TEST_CASE("VirtFs1 rwops_read1", "")
{
VirtFs::init(".");
logger = new Logger();
@@ -2793,7 +2797,7 @@ TEST_CASE("VirtFs1 rwops_read1")
delete2(logger);
}
-TEST_CASE("VirtFs1 rwops_read2")
+TEST_CASE("VirtFs1 rwops_read2", "")
{
VirtFs::init(".");
logger = new Logger();
@@ -2966,7 +2970,7 @@ TEST_CASE("VirtFs1 rwops_read2")
delete2(logger);
}
-TEST_CASE("VirtFs1 rwops_read3")
+TEST_CASE("VirtFs1 rwops_read3", "")
{
VirtFs::init(".");
logger = new Logger();
@@ -3139,7 +3143,7 @@ TEST_CASE("VirtFs1 rwops_read3")
delete2(logger);
}
-TEST_CASE("VirtFs1 getFiles zip1")
+TEST_CASE("VirtFs1 getFiles zip1", "")
{
VirtFs::init(".");
logger = new Logger();
@@ -3170,7 +3174,7 @@ TEST_CASE("VirtFs1 getFiles zip1")
delete2(logger);
}
-TEST_CASE("VirtFs1 getFiles zip2")
+TEST_CASE("VirtFs1 getFiles zip2", "")
{
VirtFs::init(".");
logger = new Logger();
@@ -3201,7 +3205,7 @@ TEST_CASE("VirtFs1 getFiles zip2")
delete2(logger);
}
-TEST_CASE("VirtFs1 getDirs1")
+TEST_CASE("VirtFs1 getDirs1", "")
{
VirtFs::init(".");
logger = new Logger();
@@ -3228,7 +3232,7 @@ TEST_CASE("VirtFs1 getDirs1")
delete2(logger);
}
-TEST_CASE("VirtFs1 getDirs2")
+TEST_CASE("VirtFs1 getDirs2", "")
{
VirtFs::init(".");
logger = new Logger();
@@ -3276,7 +3280,7 @@ TEST_CASE("VirtFs1 getDirs2")
delete2(logger);
}
-TEST_CASE("VirtFs1 getDirs3")
+TEST_CASE("VirtFs1 getDirs3", "")
{
VirtFs::init(".");
logger = new Logger();
@@ -3305,7 +3309,7 @@ TEST_CASE("VirtFs1 getDirs3")
delete2(logger);
}
-TEST_CASE("VirtFs1 getDirs4")
+TEST_CASE("VirtFs1 getDirs4", "")
{
VirtFs::init(".");
logger = new Logger();
@@ -3337,7 +3341,7 @@ TEST_CASE("VirtFs1 getDirs4")
delete2(logger);
}
-TEST_CASE("VirtFs1 getFilesWithDir1")
+TEST_CASE("VirtFs1 getFilesWithDir1", "")
{
VirtFs::init(".");
logger = new Logger();
@@ -3375,7 +3379,7 @@ TEST_CASE("VirtFs1 getFilesWithDir1")
delete2(logger);
}
-TEST_CASE("VirtFs1 getFilesWithDir2")
+TEST_CASE("VirtFs1 getFilesWithDir2", "")
{
VirtFs::init(".");
logger = new Logger();
@@ -3425,7 +3429,7 @@ TEST_CASE("VirtFs1 getFilesWithDir2")
delete2(logger);
}
-TEST_CASE("VirtFs1 getFilesWithDir3")
+TEST_CASE("VirtFs1 getFilesWithDir3", "")
{
VirtFs::init(".");
logger = new Logger();
@@ -3457,7 +3461,7 @@ TEST_CASE("VirtFs1 getFilesWithDir3")
delete2(logger);
}
-TEST_CASE("VirtFs1 getFilesWithDir4")
+TEST_CASE("VirtFs1 getFilesWithDir4", "")
{
VirtFs::init(".");
logger = new Logger();
diff --git a/src/fs/virtfs/virtfs_unittest.cc b/src/fs/virtfs/virtfs_unittest.cc
index 89676ce04..705f68ad8 100644
--- a/src/fs/virtfs/virtfs_unittest.cc
+++ b/src/fs/virtfs/virtfs_unittest.cc
@@ -29,9 +29,13 @@
#include "utils/checkutils.h"
#include "utils/delete2.h"
+#ifndef UNITTESTS_CATCH
+#include <algorithm>
+#endif // UNITTESTS_CATCH
+
#include "debug.h"
-TEST_CASE("VirtFs dirSeparator")
+TEST_CASE("VirtFs dirSeparator", "")
{
REQUIRE(dirSeparator != nullptr);
REQUIRE(VirtFs::getDirSeparator() == std::string(dirSeparator));
@@ -40,17 +44,17 @@ TEST_CASE("VirtFs dirSeparator")
REQUIRE(VirtFs::getDirSeparator() == std::string(dirSeparator));
}
-TEST_CASE("VirtFs getBaseDir")
+TEST_CASE("VirtFs getBaseDir", "")
{
REQUIRE(VirtFs::getBaseDir() != nullptr);
}
-TEST_CASE("VirtFs getUserDir")
+TEST_CASE("VirtFs getUserDir", "")
{
REQUIRE(VirtFs::getUserDir() != nullptr);
}
-TEST_CASE("VirtFs exists1")
+TEST_CASE("VirtFs exists1", "")
{
logger = new Logger();
VirtFs::mountDirSilent("data", Append_false);
@@ -91,7 +95,7 @@ TEST_CASE("VirtFs exists1")
delete2(logger);
}
-TEST_CASE("VirtFs exists2")
+TEST_CASE("VirtFs exists2", "")
{
logger = new Logger();
std::string name("data/test/test.zip");
@@ -115,7 +119,7 @@ TEST_CASE("VirtFs exists2")
delete2(logger);
}
-TEST_CASE("VirtFs exists3")
+TEST_CASE("VirtFs exists3", "")
{
logger = new Logger();
std::string name("data/test/test.zip");
@@ -143,7 +147,7 @@ TEST_CASE("VirtFs exists3")
delete2(logger);
}
-TEST_CASE("VirtFs exists4")
+TEST_CASE("VirtFs exists4", "")
{
logger = new Logger();
std::string name("data/test/test.zip");
@@ -175,7 +179,7 @@ TEST_CASE("VirtFs exists4")
delete2(logger);
}
-TEST_CASE("VirtFs exists5")
+TEST_CASE("VirtFs exists5", "")
{
logger = new Logger();
std::string name("data/test/test.zip");
@@ -190,7 +194,7 @@ TEST_CASE("VirtFs exists5")
delete2(logger);
}
-TEST_CASE("VirtFs exists6")
+TEST_CASE("VirtFs exists6", "")
{
logger = new Logger();
std::string name("data/test/test.zip");
@@ -258,7 +262,7 @@ static bool inList(const VirtFs::List *const list,
return false;
}
-TEST_CASE("VirtFs enumerateFiles1")
+TEST_CASE("VirtFs enumerateFiles1", "")
{
logger = new Logger;
@@ -299,7 +303,7 @@ TEST_CASE("VirtFs enumerateFiles1")
delete2(logger);
}
-TEST_CASE("VirtFs enumerateFiles2")
+TEST_CASE("VirtFs enumerateFiles2", "")
{
logger = new Logger;
@@ -319,7 +323,7 @@ TEST_CASE("VirtFs enumerateFiles2")
delete2(logger);
}
-TEST_CASE("VirtFs enumerateFiles3")
+TEST_CASE("VirtFs enumerateFiles3", "")
{
logger = new Logger;
std::string name("data/test/test.zip");
@@ -341,7 +345,7 @@ TEST_CASE("VirtFs enumerateFiles3")
delete2(logger);
}
-TEST_CASE("VirtFs enumerateFiles4")
+TEST_CASE("VirtFs enumerateFiles4", "")
{
logger = new Logger;
std::string name("data/test/test.zip");
@@ -366,7 +370,7 @@ TEST_CASE("VirtFs enumerateFiles4")
delete2(logger);
}
-TEST_CASE("VirtFs enumerateFiles5")
+TEST_CASE("VirtFs enumerateFiles5", "")
{
logger = new Logger;
std::string name("data/test/test.zip");
@@ -394,7 +398,7 @@ TEST_CASE("VirtFs enumerateFiles5")
delete2(logger);
}
-TEST_CASE("VirtFs isDirectory1")
+TEST_CASE("VirtFs isDirectory1", "")
{
logger = new Logger();
VirtFs::mountDirSilent("data", Append_false);
@@ -452,7 +456,7 @@ TEST_CASE("VirtFs isDirectory1")
delete2(logger);
}
-TEST_CASE("VirtFs isDirectory2")
+TEST_CASE("VirtFs isDirectory2", "")
{
logger = new Logger();
std::string name("data/test/test.zip");
@@ -474,7 +478,7 @@ TEST_CASE("VirtFs isDirectory2")
delete2(logger);
}
-TEST_CASE("VirtFs isDirectory3")
+TEST_CASE("VirtFs isDirectory3", "")
{
logger = new Logger();
std::string name("data/test/test.zip");
@@ -501,7 +505,7 @@ TEST_CASE("VirtFs isDirectory3")
delete2(logger);
}
-TEST_CASE("VirtFs openRead1")
+TEST_CASE("VirtFs openRead1", "")
{
logger = new Logger();
VirtFs::mountDirSilent("data", Append_false);
@@ -563,7 +567,7 @@ TEST_CASE("VirtFs openRead1")
delete2(logger);
}
-TEST_CASE("VirtFs openRead2")
+TEST_CASE("VirtFs openRead2", "")
{
logger = new Logger();
std::string name("data/test/test.zip");
@@ -591,7 +595,7 @@ TEST_CASE("VirtFs openRead2")
delete2(logger);
}
-TEST_CASE("VirtFs openRead3")
+TEST_CASE("VirtFs openRead3", "")
{
logger = new Logger();
std::string name("data/test/test.zip");
@@ -626,7 +630,7 @@ TEST_CASE("VirtFs openRead3")
delete2(logger);
}
-TEST_CASE("VirtFs getRealDir1")
+TEST_CASE("VirtFs getRealDir1", "")
{
logger = new Logger();
const std::string sep = dirSeparator;
@@ -717,7 +721,7 @@ TEST_CASE("VirtFs getRealDir1")
delete2(logger);
}
-TEST_CASE("VirtFs getrealDir2")
+TEST_CASE("VirtFs getrealDir2", "")
{
logger = new Logger();
const std::string sep = dirSeparator;
@@ -747,7 +751,7 @@ TEST_CASE("VirtFs getrealDir2")
delete2(logger);
}
-TEST_CASE("VirtFs getrealDir3")
+TEST_CASE("VirtFs getrealDir3", "")
{
logger = new Logger();
const std::string sep = dirSeparator;
@@ -778,7 +782,7 @@ TEST_CASE("VirtFs getrealDir3")
delete2(logger);
}
-TEST_CASE("VirtFs permitLinks1")
+TEST_CASE("VirtFs permitLinks1", "")
{
logger = new Logger();
VirtFs::mountDirSilent("data", Append_false);
@@ -811,7 +815,7 @@ TEST_CASE("VirtFs permitLinks1")
delete2(logger);
}
-TEST_CASE("VirtFs permitLinks2")
+TEST_CASE("VirtFs permitLinks2", "")
{
logger = new Logger();
VirtFs::mountDirSilent2("data",
@@ -850,7 +854,7 @@ TEST_CASE("VirtFs permitLinks2")
delete2(logger);
}
-TEST_CASE("VirtFs read1")
+TEST_CASE("VirtFs read1", "")
{
logger = new Logger();
VirtFs::mountDirSilent("data", Append_false);
@@ -886,7 +890,7 @@ TEST_CASE("VirtFs read1")
delete2(logger);
}
-TEST_CASE("VirtFs read2")
+TEST_CASE("VirtFs read2", "")
{
logger = new Logger();
std::string name("data/test/test.zip");
@@ -925,7 +929,7 @@ TEST_CASE("VirtFs read2")
delete2(logger);
}
-TEST_CASE("VirtFs read3")
+TEST_CASE("VirtFs read3", "")
{
logger = new Logger();
std::string name("data/test/test.zip");
@@ -966,7 +970,7 @@ TEST_CASE("VirtFs read3")
delete2(logger);
}
-TEST_CASE("VirtFs read4")
+TEST_CASE("VirtFs read4", "")
{
logger = new Logger();
std::string name("data/test/test.zip");
@@ -1007,7 +1011,7 @@ TEST_CASE("VirtFs read4")
delete2(logger);
}
-TEST_CASE("VirtFs read5")
+TEST_CASE("VirtFs read5", "")
{
logger = new Logger();
std::string name("data/test/test.zip");
diff --git a/src/fs/virtfs/zip_unittest.cc b/src/fs/virtfs/zip_unittest.cc
index 33755af87..52629d482 100644
--- a/src/fs/virtfs/zip_unittest.cc
+++ b/src/fs/virtfs/zip_unittest.cc
@@ -35,7 +35,7 @@
extern const char *dirSeparator;
-TEST_CASE("Zip readArchiveInfo")
+TEST_CASE("Zip readArchiveInfo", "")
{
logger = new Logger();
std::string name("data/test/test.zip");
@@ -170,7 +170,7 @@ TEST_CASE("Zip readArchiveInfo")
delete2(logger);
}
-TEST_CASE("Zip readCompressedFile")
+TEST_CASE("Zip readCompressedFile", "")
{
logger = new Logger();
std::string name("data/test/test.zip");
@@ -205,7 +205,7 @@ TEST_CASE("Zip readCompressedFile")
delete2(logger);
}
-TEST_CASE("Zip readFile")
+TEST_CASE("Zip readFile", "")
{
logger = new Logger();
std::string name("data/test/test.zip");