summaryrefslogtreecommitdiff
path: root/src/unittests/fs
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-03-02 03:48:14 +0300
committerAndrei Karas <akaras@inbox.ru>2018-03-02 03:48:14 +0300
commitd7f491da52e985ea50464804d342d9d45ae407f7 (patch)
treeab3c2fe76047e0fc966f24bf0de8ac159cb64b62 /src/unittests/fs
parent359c97f1bdb7ce773c3a7cf9671ece7113685c76 (diff)
downloadmanaverse-d7f491da52e985ea50464804d342d9d45ae407f7.tar.gz
manaverse-d7f491da52e985ea50464804d342d9d45ae407f7.tar.bz2
manaverse-d7f491da52e985ea50464804d342d9d45ae407f7.tar.xz
manaverse-d7f491da52e985ea50464804d342d9d45ae407f7.zip
Add unit tests for itemxmlutils.
Diffstat (limited to 'src/unittests/fs')
-rw-r--r--src/unittests/fs/virtfs/virtfs.cc12
-rw-r--r--src/unittests/fs/virtfs/virtfs1_enumerate.cc4
-rw-r--r--src/unittests/fs/virtfs/virtfs2.cc4
3 files changed, 10 insertions, 10 deletions
diff --git a/src/unittests/fs/virtfs/virtfs.cc b/src/unittests/fs/virtfs/virtfs.cc
index d316b4ac5..cb318963b 100644
--- a/src/unittests/fs/virtfs/virtfs.cc
+++ b/src/unittests/fs/virtfs/virtfs.cc
@@ -256,8 +256,8 @@ TEST_CASE("VirtFs enumerateFiles1", "")
VirtFs::List *list = nullptr;
- const int cnt1 = VirtFs::exists("test/test2.txt") ? 29 : 28;
- const int cnt2 = 29;
+ const int cnt1 = VirtFs::exists("test/test2.txt") ? 30 : 29;
+ const int cnt2 = 30;
VirtFs::permitLinks(false);
list = VirtFs::enumerateFiles("test");
@@ -744,8 +744,8 @@ TEST_CASE("VirtFs permitLinks1", "")
VirtFs::mountDirSilent("data", Append_false);
VirtFs::mountDirSilent("../data", Append_false);
- const int cnt1 = VirtFs::exists("test/test2.txt") ? 26 : 25;
- const int cnt2 = 26;
+ const int cnt1 = VirtFs::exists("test/test2.txt") ? 27 : 26;
+ const int cnt2 = 27;
StringVect list;
VirtFs::permitLinks(false);
@@ -779,8 +779,8 @@ TEST_CASE("VirtFs permitLinks2", "")
"test",
Append_false);
- const int cnt1 = VirtFs::exists("test2.txt") ? 26 : 25;
- const int cnt2 = 26;
+ const int cnt1 = VirtFs::exists("test2.txt") ? 27 : 26;
+ const int cnt2 = 27;
StringVect list;
VirtFs::permitLinks(false);
diff --git a/src/unittests/fs/virtfs/virtfs1_enumerate.cc b/src/unittests/fs/virtfs/virtfs1_enumerate.cc
index 25f523adf..f77d465ea 100644
--- a/src/unittests/fs/virtfs/virtfs1_enumerate.cc
+++ b/src/unittests/fs/virtfs/virtfs1_enumerate.cc
@@ -82,8 +82,8 @@ TEST_CASE("VirtFs1 enumerateFiles1", "")
VirtFs::List *list = nullptr;
- const int cnt1 = VirtFs::exists("test/test2.txt") ? 29 : 28;
- const int cnt2 = 29;
+ const int cnt1 = VirtFs::exists("test/test2.txt") ? 30 : 29;
+ const int cnt2 = 30;
VirtFs::permitLinks(false);
list = VirtFs::enumerateFiles("test");
diff --git a/src/unittests/fs/virtfs/virtfs2.cc b/src/unittests/fs/virtfs/virtfs2.cc
index cbff4826d..111e3ba44 100644
--- a/src/unittests/fs/virtfs/virtfs2.cc
+++ b/src/unittests/fs/virtfs/virtfs2.cc
@@ -605,8 +605,8 @@ TEST_CASE("VirtFs2 permitLinks", "")
VirtFs::mountDir(prefix + "data",
Append_false);
- const int cnt1 = VirtFs::exists("test/test2.txt") ? 26 : 25;
- const int cnt2 = 26;
+ const int cnt1 = VirtFs::exists("test/test2.txt") ? 27 : 26;
+ const int cnt2 = 27;
StringVect list;
VirtFs::permitLinks(false);