From 7df01a8695e46e7e8cce603782f0e16caf54169b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 1 Mar 2017 04:50:26 +0300 Subject: Fix tests running without physfs. --- src/resources/map/maplayer_unittest.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/resources/map/maplayer_unittest.cc') 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); } -- cgit v1.2.3-70-g09d2