summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-04 18:25:48 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-04 18:25:48 +0300
commit9fefb2942865846ccb7dbdac4ebd4515b8c851a2 (patch)
treec3e805eb002d03c286de2a3fe37f450f6279f82c /src/gui/widgets
parent76ad2d74012c408788473c3b495076c96666b27c (diff)
downloadmv-9fefb2942865846ccb7dbdac4ebd4515b8c851a2.tar.gz
mv-9fefb2942865846ccb7dbdac4ebd4515b8c851a2.tar.bz2
mv-9fefb2942865846ccb7dbdac4ebd4515b8c851a2.tar.xz
mv-9fefb2942865846ccb7dbdac4ebd4515b8c851a2.zip
Add physfs deinit function for unit tests. But not using it for now.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/browserbox_unittest.cc5
1 files changed, 5 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();
}