diff UnitTestsSources/UnitTestsMain.cpp @ 147:70d1fe6d6309

Avoid hard crash if not enough memory
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 09 Nov 2016 12:43:58 +0100
parents 3809121c3290
children 1a90184363f8
line wrap: on
line diff
--- a/UnitTestsSources/UnitTestsMain.cpp	Wed Nov 09 12:20:01 2016 +0100
+++ b/UnitTestsSources/UnitTestsMain.cpp	Wed Nov 09 12:43:58 2016 +0100
@@ -51,7 +51,7 @@
     db_.reset(new Orthanc::SQLite::Connection());
     db_->Open("UnitTestsResults/cache.db");
 
-    cache_.reset(new CacheManager(*db_, *storage_));
+    cache_.reset(new CacheManager(NULL, *db_, *storage_));
     cache_->SetSanityCheckEnabled(true);
   }