oatpp::test::UnitTest print non-empty pools only on failure

This commit is contained in:
lganzzzo 2019-04-27 03:08:28 +03:00
parent a59a6d7166
commit 04393657e5

View File

@ -59,7 +59,9 @@ void UnitTest::run(v_int32 times) {
auto it = POOLS.begin();
while (it != POOLS.end()) {
auto pool = it->second;
OATPP_LOGD("Pool", "name: '%s' [%d(objs)]", pool->getName().c_str(), pool->getObjectsCount());
if(pool->getObjectsCount() != 0) {
OATPP_LOGD("Pool", "name: '%s' [%d(objs)]", pool->getName().c_str(), pool->getObjectsCount());
}
it ++;
}