diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-01-05 17:00:02 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-01-05 17:00:02 +0300 |
commit | 855387d2d795c9471587cc7ddf2c66bb676d698e (patch) | |
tree | 3dbb1260c219312f36893dfae52f5cd40760aeb5 /src/utils/files_unittest.cc | |
parent | 9fefb2942865846ccb7dbdac4ebd4515b8c851a2 (diff) | |
download | plus-855387d2d795c9471587cc7ddf2c66bb676d698e.tar.gz plus-855387d2d795c9471587cc7ddf2c66bb676d698e.tar.bz2 plus-855387d2d795c9471587cc7ddf2c66bb676d698e.tar.xz plus-855387d2d795c9471587cc7ddf2c66bb676d698e.zip |
Fix different issues in unit tests.
Fix crash with some compilers flags.
Clean window container to null after it was removed.
Init and deinit physfs globally.
Diffstat (limited to 'src/utils/files_unittest.cc')
-rw-r--r-- | src/utils/files_unittest.cc | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/utils/files_unittest.cc b/src/utils/files_unittest.cc index 77a7017f6..d0d4fdb1e 100644 --- a/src/utils/files_unittest.cc +++ b/src/utils/files_unittest.cc @@ -31,7 +31,6 @@ TEST_CASE("Files renameFile") { - PHYSFS_init("manaplus"); dirSeparator = "/"; logger = new Logger(); ResourceManager::init(); @@ -69,7 +68,6 @@ TEST_CASE("Files renameFile") TEST_CASE("Files existsLocal") { - PHYSFS_init("manaplus"); dirSeparator = "/"; logger = new Logger(); ResourceManager::init(); @@ -84,7 +82,6 @@ TEST_CASE("Files existsLocal") TEST_CASE("Files loadTextFileString") { - PHYSFS_init("manaplus"); dirSeparator = "/"; logger = new Logger(); ResourceManager::init(); @@ -98,7 +95,6 @@ TEST_CASE("Files loadTextFileString") TEST_CASE("Files loadTextFile") { - PHYSFS_init("manaplus"); dirSeparator = "/"; logger = new Logger(); ResourceManager::init(); @@ -116,7 +112,6 @@ TEST_CASE("Files loadTextFile") TEST_CASE("Files saveTextFile") { - PHYSFS_init("manaplus"); dirSeparator = "/"; logger = new Logger(); ResourceManager::init(); @@ -135,7 +130,6 @@ TEST_CASE("Files saveTextFile") TEST_CASE("Files getFilesInDir") { - PHYSFS_init("manaplus"); dirSeparator = "/"; logger = new Logger(); ResourceManager::init(); |