diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-02 17:16:10 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-02 17:16:10 +0300 |
commit | 6feaa7a3c79af17e55d0a5d190920a1954d77d38 (patch) | |
tree | bafc5d4e71b4b57eba6d143f25b63db9d9d7d4ae /src/fs/virtfs | |
parent | 79d27e4b7b4a86d8ca33456871de05f86d4d14c8 (diff) | |
download | plus-6feaa7a3c79af17e55d0a5d190920a1954d77d38.tar.gz plus-6feaa7a3c79af17e55d0a5d190920a1954d77d38.tar.bz2 plus-6feaa7a3c79af17e55d0a5d190920a1954d77d38.tar.xz plus-6feaa7a3c79af17e55d0a5d190920a1954d77d38.zip |
Another fix for windows unit tests.
Diffstat (limited to 'src/fs/virtfs')
-rw-r--r-- | src/fs/virtfs/virtfs1_unittest.cc | 6 |
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"); } |