summaryrefslogtreecommitdiff
path: root/src/fs/physfs/virtfsphys_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/fs/physfs/virtfsphys_unittest.cc')
-rw-r--r--src/fs/physfs/virtfsphys_unittest.cc34
1 files changed, 0 insertions, 34 deletions
diff --git a/src/fs/physfs/virtfsphys_unittest.cc b/src/fs/physfs/virtfsphys_unittest.cc
index f35dedc7f..df3898221 100644
--- a/src/fs/physfs/virtfsphys_unittest.cc
+++ b/src/fs/physfs/virtfsphys_unittest.cc
@@ -468,40 +468,6 @@ TEST_CASE("VirtFsPhys getRealDir")
delete2(logger);
}
-TEST_CASE("VirtFsPhys permitLinks")
-{
- VirtFsPhys::initFuncs();
- logger = new Logger();
- VirtFsPhys::addDirToSearchPath("data", Append_false);
- VirtFsPhys::addDirToSearchPath("../data", Append_false);
-
- const int cnt1 = VirtFsPhys::exists("test/test2.txt") ? 26 : 25;
- const int cnt2 = 26;
-
- StringVect list;
- VirtFsPhys::permitLinks(false);
- VirtFsPhys::getFiles("test", list);
- removeTemp(list);
- const size_t sz = list.size();
- REQUIRE(sz == cnt1);
-
- list.clear();
- VirtFsPhys::permitLinks(true);
- VirtFsPhys::getFiles("test", list);
- removeTemp(list);
- REQUIRE(list.size() == cnt2);
-
- list.clear();
- VirtFsPhys::permitLinks(false);
- VirtFsPhys::getFiles("test", list);
- removeTemp(list);
- REQUIRE(list.size() == cnt1);
-
- VirtFsPhys::removeDirFromSearchPath("data");
- VirtFsPhys::removeDirFromSearchPath("../data");
- delete2(logger);
-}
-
TEST_CASE("VirtFsPhys read")
{
VirtFsPhys::initFuncs();