From d98cdd55a5917e851ea6e6c76a53b152d74b0042 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 28 Aug 2016 20:32:29 +0300 Subject: Add unit tests for resource manager. Physfs function not tested. --- src/gui/windowmanager_unittest.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui') 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); -- cgit v1.2.3-70-g09d2