diff options
author | Riccardo Spagni <ric@spagni.net> | 2015-11-04 10:25:23 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2015-11-04 10:25:36 +0200 |
commit | 6a0103053385c8101fb3a2c2bd5950cfdf8010f2 (patch) | |
tree | cf9f7c817b3d334aecd582c05f50a0a75eed384d /tests | |
parent | Merge pull request #470 (diff) | |
parent | unit_tests: fix build without berkeleydb (diff) | |
download | monero-6a0103053385c8101fb3a2c2bd5950cfdf8010f2.tar.xz |
Merge pull request #475
ef4c5b5 unit_tests: fix build without berkeleydb (moneromooo-monero)
Diffstat (limited to 'tests')
-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); |