diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-03-01 04:50:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-03-01 04:50:26 +0300 |
commit | 7df01a8695e46e7e8cce603782f0e16caf54169b (patch) | |
tree | 030a0125429c9605c24ad74e3d523fd900f155cd /src/resources/map/maplayer_unittest.cc | |
parent | 0f172abb004bed203f8bf329e4f43eb174a8a58c (diff) | |
download | manaplus-7df01a8695e46e7e8cce603782f0e16caf54169b.tar.gz manaplus-7df01a8695e46e7e8cce603782f0e16caf54169b.tar.bz2 manaplus-7df01a8695e46e7e8cce603782f0e16caf54169b.tar.xz manaplus-7df01a8695e46e7e8cce603782f0e16caf54169b.zip |
Fix tests running without physfs.
Diffstat (limited to 'src/resources/map/maplayer_unittest.cc')
-rw-r--r-- | src/resources/map/maplayer_unittest.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/resources/map/maplayer_unittest.cc b/src/resources/map/maplayer_unittest.cc index 34a0f128b..a3978b1e2 100644 --- a/src/resources/map/maplayer_unittest.cc +++ b/src/resources/map/maplayer_unittest.cc @@ -1994,6 +1994,8 @@ TEST_CASE("MapLayer drawSpecialLayer (specialLayer)") delete map; delete mock; GraphicsManager::deleteRenderers(); + VirtFs::removeDirFromSearchPath("data"); + VirtFs::removeDirFromSearchPath("../data"); delete2(logger); } @@ -2351,6 +2353,8 @@ TEST_CASE("MapLayer drawSpecialLayer (tempLayer)") delete map; delete mock; GraphicsManager::deleteRenderers(); + VirtFs::removeDirFromSearchPath("data"); + VirtFs::removeDirFromSearchPath("../data"); delete2(logger); } @@ -3236,5 +3240,7 @@ TEST_CASE("MapLayer drawFringe") delete mock; delete2(theme); GraphicsManager::deleteRenderers(); + VirtFs::removeDirFromSearchPath("data"); + VirtFs::removeDirFromSearchPath("../data"); delete2(logger); } |