unit_tests: fix build without berkeleydb

This commit is contained in:
moneromooo-monero 2015-11-03 09:51:44 +00:00
parent 575af61815
commit ef4c5b5d8e
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 7 additions and 1 deletions

View File

@ -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);