changeset 676:c652b6bf413e attach-custom-data

fix build
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 31 May 2025 09:31:55 +0200
parents 0d2ccb51c70b
children 017d72dd27fa
files Framework/Plugins/IndexUnitTests.h
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/Plugins/IndexUnitTests.h	Fri May 30 21:43:18 2025 +0200
+++ b/Framework/Plugins/IndexUnitTests.h	Sat May 31 09:31:55 2025 +0200
@@ -217,6 +217,7 @@
 }
 
 
+#if ORTHANC_PLUGINS_HAS_KEY_VALUE_STORES == 1
 static void ListKeys(std::set<std::string>& keys,
                      OrthancDatabases::IndexBackend& db,
                      OrthancDatabases::DatabaseManager& manager,
@@ -289,6 +290,7 @@
     }
   }
 }
+#endif
 
 
 TEST(IndexBackend, Basic)
@@ -877,6 +879,8 @@
   }
 #endif
 
+
+#if ORTHANC_PLUGINS_HAS_KEY_VALUE_STORES == 1
   {
     manager->StartTransaction(TransactionType_ReadWrite);
 
@@ -950,7 +954,10 @@
 
     manager->CommitTransaction();
   }
+#endif
 
+
+#if ORTHANC_PLUGINS_HAS_QUEUES == 1
   {
     manager->StartTransaction(TransactionType_ReadWrite);
 
@@ -1004,6 +1011,7 @@
 
     manager->CommitTransaction();
   }
+#endif
 
   manager->Close();
 }