diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-11-03 09:51:44 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-11-03 09:53:09 +0000 |
commit | ef4c5b5d8ec081b4cfe3c603338db772f2d5fd46 (patch) | |
tree | cf9f7c817b3d334aecd582c05f50a0a75eed384d /tests | |
parent | Merge pull request #470 (diff) | |
download | monero-ef4c5b5d8ec081b4cfe3c603338db772f2d5fd46.tar.xz |
unit_tests: fix build without berkeleydb
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); |