Mercurial > hg > orthanc-databases
diff SQLite/UnitTests/UnitTestsMain.cpp @ 201:42990b2dd51b
create IDatabaseBackendOutput only if needed
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 18 Mar 2021 16:51:51 +0100 |
parents | 3236894320d6 |
children | b40b30075c51 |
line wrap: on
line diff
--- a/SQLite/UnitTests/UnitTestsMain.cpp Thu Mar 18 15:21:17 2021 +0100 +++ b/SQLite/UnitTests/UnitTestsMain.cpp Thu Mar 18 16:51:51 2021 +0100 @@ -36,8 +36,8 @@ { { // No locking if using memory backend - OrthancDatabases::SQLiteIndex db1; - OrthancDatabases::SQLiteIndex db2; + OrthancDatabases::SQLiteIndex db1(NULL); + OrthancDatabases::SQLiteIndex db2(NULL); db1.Open(); db2.Open(); @@ -46,15 +46,15 @@ Orthanc::SystemToolbox::RemoveFile("index.db"); { - OrthancDatabases::SQLiteIndex db1("index.db"); - OrthancDatabases::SQLiteIndex db2("index.db"); + OrthancDatabases::SQLiteIndex db1(NULL, "index.db"); + OrthancDatabases::SQLiteIndex db2(NULL, "index.db"); db1.Open(); ASSERT_THROW(db2.Open(), Orthanc::OrthancException); } { - OrthancDatabases::SQLiteIndex db3("index.db"); + OrthancDatabases::SQLiteIndex db3(NULL, "index.db"); db3.Open(); } }