diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-08-28 20:32:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-08-28 20:32:29 +0300 |
commit | d98cdd55a5917e851ea6e6c76a53b152d74b0042 (patch) | |
tree | 25113d1079653a015197ae0ca1b4eebc1153e45c /src/gui | |
parent | 781c9bee8328a3f298a6ea443c0273042cffc294 (diff) | |
download | manaverse-d98cdd55a5917e851ea6e6c76a53b152d74b0042.tar.gz manaverse-d98cdd55a5917e851ea6e6c76a53b152d74b0042.tar.bz2 manaverse-d98cdd55a5917e851ea6e6c76a53b152d74b0042.tar.xz manaverse-d98cdd55a5917e851ea6e6c76a53b152d74b0042.zip |
Add unit tests for resource manager.
Physfs function not tested.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/windowmanager_unittest.cc | 3 |
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); |