diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-03-02 03:48:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-03-02 03:48:14 +0300 |
commit | d7f491da52e985ea50464804d342d9d45ae407f7 (patch) | |
tree | ab3c2fe76047e0fc966f24bf0de8ac159cb64b62 /src/unittests/fs/virtfs | |
parent | 359c97f1bdb7ce773c3a7cf9671ece7113685c76 (diff) | |
download | manaverse-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/virtfs')
-rw-r--r-- | src/unittests/fs/virtfs/virtfs.cc | 12 | ||||
-rw-r--r-- | src/unittests/fs/virtfs/virtfs1_enumerate.cc | 4 | ||||
-rw-r--r-- | src/unittests/fs/virtfs/virtfs2.cc | 4 |
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); |