diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-08-24 22:53:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-08-24 22:53:11 +0300 |
commit | 732c2012ec337bfebb1a12c1822e98e5c61e79bc (patch) | |
tree | a76013a7a0c31f075fc97ea99f19d1f4f631c0b5 /src/utils | |
parent | 7ffba524847fa15cff8764b8274b5aedfa08bf79 (diff) | |
download | mv-732c2012ec337bfebb1a12c1822e98e5c61e79bc.tar.gz mv-732c2012ec337bfebb1a12c1822e98e5c61e79bc.tar.bz2 mv-732c2012ec337bfebb1a12c1822e98e5c61e79bc.tar.xz mv-732c2012ec337bfebb1a12c1822e98e5c61e79bc.zip |
Add missing resource manager init into unit tests.
Diffstat (limited to 'src/utils')
-rw-r--r-- | src/utils/files_unittest.cc | 1 | ||||
-rw-r--r-- | src/utils/xmlutils_unittest.cc | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/utils/files_unittest.cc b/src/utils/files_unittest.cc index b10c5acda..50805b173 100644 --- a/src/utils/files_unittest.cc +++ b/src/utils/files_unittest.cc @@ -34,6 +34,7 @@ TEST_CASE("Files renameFile", "files") PHYSFS_init("manaplus"); dirSeparator = "/"; logger = new Logger(); + ResourceManager::init(); resourceManager->addToSearchPath("data", false); resourceManager->addToSearchPath("../data", false); diff --git a/src/utils/xmlutils_unittest.cc b/src/utils/xmlutils_unittest.cc index 1fc6e44bc..97cbd93a8 100644 --- a/src/utils/xmlutils_unittest.cc +++ b/src/utils/xmlutils_unittest.cc @@ -38,6 +38,7 @@ TEST_CASE("xmlutils readXmlIntVector 1") dirSeparator = "/"; XML::initXML(); logger = new Logger(); + ResourceManager::init(); resourceManager->addToSearchPath("data", false); resourceManager->addToSearchPath("../data", false); |