diff options
Diffstat (limited to 'tests/unit_tests/blockchain_db.cpp')
-rw-r--r-- | tests/unit_tests/blockchain_db.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/unit_tests/blockchain_db.cpp b/tests/unit_tests/blockchain_db.cpp index fbd8a733c..54dd5d98f 100644 --- a/tests/unit_tests/blockchain_db.cpp +++ b/tests/unit_tests/blockchain_db.cpp @@ -37,7 +37,9 @@ #include "blockchain_db/blockchain_db.h" #include "blockchain_db/lmdb/db_lmdb.h" +#ifdef BERKELEY_DB #include "blockchain_db/berkeleydb/db_bdb.h" +#endif #include "cryptonote_core/cryptonote_format_utils.h" using namespace cryptonote; @@ -223,7 +225,11 @@ protected: using testing::Types; -typedef Types<BlockchainLMDB, BlockchainBDB> implementations; +typedef Types<BlockchainLMDB +#ifdef BERKELEY_DB + , BlockchainBDB +#endif +> implementations; TYPED_TEST_CASE(BlockchainDBTest, implementations); |