diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-12-28 02:36:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-12-28 02:36:11 +0300 |
commit | 28e53f73dff6f889a9eaeb69d19767dfc71afddd (patch) | |
tree | d3d638be1ddeb179937aca805c2be95a30ebe445 /src/unittests/resources/resourcemanager | |
parent | 2134c91e8f9793d07206febf22d5310132f3bc7e (diff) | |
download | manaverse-28e53f73dff6f889a9eaeb69d19767dfc71afddd.tar.gz manaverse-28e53f73dff6f889a9eaeb69d19767dfc71afddd.tar.bz2 manaverse-28e53f73dff6f889a9eaeb69d19767dfc71afddd.tar.xz manaverse-28e53f73dff6f889a9eaeb69d19767dfc71afddd.zip |
Fix unit tests compilation.
Diffstat (limited to 'src/unittests/resources/resourcemanager')
-rw-r--r-- | src/unittests/resources/resourcemanager/resourcemanager.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/unittests/resources/resourcemanager/resourcemanager.cc b/src/unittests/resources/resourcemanager/resourcemanager.cc index 4b67af82e..5e240e65d 100644 --- a/src/unittests/resources/resourcemanager/resourcemanager.cc +++ b/src/unittests/resources/resourcemanager/resourcemanager.cc @@ -265,7 +265,7 @@ TEST_CASE("resourcemanager", "resourcemanager") REQUIRE(ResourceManager::getDeletedResources().empty() == true); sleep(33); - ResourceManager::cleanOrphans(); + ResourceManager::cleanOrphans(false); REQUIRE(ResourceManager::isInCache("test1") == false); REQUIRE(testResouceCounter == 0); REQUIRE(ResourceManager::getResources().size() == 0 + resSize); @@ -647,7 +647,7 @@ TEST_CASE("resourcemanager", "resourcemanager") REQUIRE(ResourceManager::getOrphanedResources().empty() == true); REQUIRE(ResourceManager::getDeletedResources().size() == 1); - ResourceManager::clearDeleted(); + ResourceManager::clearDeleted(true); REQUIRE(testResouceCounter == 1); REQUIRE(res->mRefCount == 1); REQUIRE(ResourceManager::getResources().size() == 0 + resSize); @@ -678,7 +678,7 @@ TEST_CASE("resourcemanager", "resourcemanager") REQUIRE(ResourceManager::getDeletedResources().size() == 1); res->decRef(); - ResourceManager::clearDeleted(); + ResourceManager::clearDeleted(true); REQUIRE(testResouceCounter == 0); REQUIRE(ResourceManager::getResources().size() == 0 + resSize); REQUIRE(ResourceManager::getOrphanedResources().empty() == true); |