summaryrefslogtreecommitdiff
path: root/src/gui/windowmanager_unittest.cc
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-28 20:32:29 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-28 20:32:29 +0300
commitd98cdd55a5917e851ea6e6c76a53b152d74b0042 (patch)
tree25113d1079653a015197ae0ca1b4eebc1153e45c /src/gui/windowmanager_unittest.cc
parent781c9bee8328a3f298a6ea443c0273042cffc294 (diff)
downloadmv-d98cdd55a5917e851ea6e6c76a53b152d74b0042.tar.gz
mv-d98cdd55a5917e851ea6e6c76a53b152d74b0042.tar.bz2
mv-d98cdd55a5917e851ea6e6c76a53b152d74b0042.tar.xz
mv-d98cdd55a5917e851ea6e6c76a53b152d74b0042.zip
Add unit tests for resource manager.
Physfs function not tested.
Diffstat (limited to 'src/gui/windowmanager_unittest.cc')
-rw-r--r--src/gui/windowmanager_unittest.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/windowmanager_unittest.cc b/src/gui/windowmanager_unittest.cc
index f36a2b605..84e2b5e2f 100644
--- a/src/gui/windowmanager_unittest.cc
+++ b/src/gui/windowmanager_unittest.cc
@@ -132,6 +132,9 @@ TEST_CASE("Windows tests", "windowmanager")
XML::initXML();
SDL_Init(SDL_INIT_VIDEO);
logger = new Logger();
+ delete ResourceManager::instance;
+ ResourceManager::instance = nullptr;
+ resourceManager = nullptr;
ResourceManager::init();
resourceManager->addToSearchPath("data", Append_false);
resourceManager->addToSearchPath("../data", Append_false);