Merge pull request #475

ef4c5b5 unit_tests: fix build without berkeleydb (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2015-11-04 10:25:23 +02:00
commit 6a01030533
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -37,7 +37,9 @@
#include "blockchain_db/blockchain_db.h" #include "blockchain_db/blockchain_db.h"
#include "blockchain_db/lmdb/db_lmdb.h" #include "blockchain_db/lmdb/db_lmdb.h"
#ifdef BERKELEY_DB
#include "blockchain_db/berkeleydb/db_bdb.h" #include "blockchain_db/berkeleydb/db_bdb.h"
#endif
#include "cryptonote_core/cryptonote_format_utils.h" #include "cryptonote_core/cryptonote_format_utils.h"
using namespace cryptonote; using namespace cryptonote;
@ -223,7 +225,11 @@ protected:
using testing::Types; using testing::Types;
typedef Types<BlockchainLMDB, BlockchainBDB> implementations; typedef Types<BlockchainLMDB
#ifdef BERKELEY_DB
, BlockchainBDB
#endif
> implementations;
TYPED_TEST_CASE(BlockchainDBTest, implementations); TYPED_TEST_CASE(BlockchainDBTest, implementations);