diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/widgets/browserbox_unittest.cc | 5 | ||||
-rw-r--r-- | src/gui/windowmanager_unittest.cc | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/widgets/browserbox_unittest.cc b/src/gui/widgets/browserbox_unittest.cc index a4438eb64..665d6de3f 100644 --- a/src/gui/widgets/browserbox_unittest.cc +++ b/src/gui/widgets/browserbox_unittest.cc @@ -31,6 +31,8 @@ #include "resources/sdlimagehelper.h" +#include "utils/physfstools.h" + #include <physfs.h> #include "debug.h" @@ -46,6 +48,8 @@ TEST_CASE("BrowserBox tests", "browserbox") imageHelper = new SDLImageHelper(); theme = new Theme; ResourceManager::init(); + resourceManager->addToSearchPath("data", Append_false); + resourceManager->addToSearchPath("../data", Append_false); ActorSprite::load(); Widget::setGlobalFont(new Font("/usr/share/fonts/truetype/" "ttf-dejavu/DejaVuSans-Oblique.ttf", 18)); @@ -151,4 +155,5 @@ TEST_CASE("BrowserBox tests", "browserbox") delete box; delete client; client = nullptr; +// PhysFs::deinit(); } diff --git a/src/gui/windowmanager_unittest.cc b/src/gui/windowmanager_unittest.cc index 2230385f2..0f8c5bc15 100644 --- a/src/gui/windowmanager_unittest.cc +++ b/src/gui/windowmanager_unittest.cc @@ -673,4 +673,5 @@ TEST_CASE("Windows tests", "windowmanager") delete2(client); delete2(serverFeatures); delete2(inventoryHandler); +// PhysFs::deinit(); } |