summaryrefslogtreecommitdiff
path: root/src/unittests/resources/resourcemanager/resourcemanager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/unittests/resources/resourcemanager/resourcemanager.cc')
-rw-r--r--src/unittests/resources/resourcemanager/resourcemanager.cc6
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);