summaryrefslogtreecommitdiff
path: root/src/fs/virtfs/virtfs1_unittest.cc
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-05-02 17:16:10 +0300
committerAndrei Karas <akaras@inbox.ru>2017-05-02 17:16:10 +0300
commit6feaa7a3c79af17e55d0a5d190920a1954d77d38 (patch)
treebafc5d4e71b4b57eba6d143f25b63db9d9d7d4ae /src/fs/virtfs/virtfs1_unittest.cc
parent79d27e4b7b4a86d8ca33456871de05f86d4d14c8 (diff)
downloadmv-6feaa7a3c79af17e55d0a5d190920a1954d77d38.tar.gz
mv-6feaa7a3c79af17e55d0a5d190920a1954d77d38.tar.bz2
mv-6feaa7a3c79af17e55d0a5d190920a1954d77d38.tar.xz
mv-6feaa7a3c79af17e55d0a5d190920a1954d77d38.zip
Another fix for windows unit tests.
Diffstat (limited to 'src/fs/virtfs/virtfs1_unittest.cc')
-rw-r--r--src/fs/virtfs/virtfs1_unittest.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/fs/virtfs/virtfs1_unittest.cc b/src/fs/virtfs/virtfs1_unittest.cc
index 0be1db81e..0c7f1c84b 100644
--- a/src/fs/virtfs/virtfs1_unittest.cc
+++ b/src/fs/virtfs/virtfs1_unittest.cc
@@ -2104,10 +2104,16 @@ TEST_CASE("VirtFs1 getFilesWithDir2")
list.clear();
VirtFs::getFilesWithDir(pathJoin("evol", "icons"), list);
+#ifdef WIN32
+ REQUIRE(list.size() == 1);
+ REQUIRE(inList(list, pathJoin("evol", "icons"), "evol-client.ico"));
+#else // WIN32
+
REQUIRE(list.size() == 3);
REQUIRE(inList(list, pathJoin("evol", "icons"), "evol-client.ico"));
REQUIRE(inList(list, pathJoin("evol", "icons"), "evol-client.png"));
REQUIRE(inList(list, pathJoin("evol", "icons"), "evol-client.xpm"));
+#endif // WIN32
VirtFs::unmountDir(prefix + "data");
}