From 9fefb2942865846ccb7dbdac4ebd4515b8c851a2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 4 Jan 2017 18:25:48 +0300 Subject: Add physfs deinit function for unit tests. But not using it for now. --- src/gui/widgets/browserbox_unittest.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gui/widgets') 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 #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(); } -- cgit v1.2.3-60-g2f50