aboutsummaryrefslogtreecommitdiff
path: root/src/test/accounting_tests.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-03-09 12:43:21 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2015-03-09 12:51:07 +0100
commitcdae53e456ad35216e33a90f1681aade546cc431 (patch)
treed21c3163a804c7542241c089075586acd16c218e /src/test/accounting_tests.cpp
parentc1b723c30a57811ad5801ab8a839186b654ae2bf (diff)
parent51598b26319bf1ee98b399dee8152b902c62891a (diff)
downloadbitcoin-cdae53e456ad35216e33a90f1681aade546cc431.tar.xz
Merge pull request #5852
51598b2 Reinitialize state in between individual unit tests. (Pieter Wuille)
Diffstat (limited to 'src/test/accounting_tests.cpp')
-rw-r--r--src/test/accounting_tests.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/accounting_tests.cpp b/src/test/accounting_tests.cpp
index da07b8c7a6..36499f01a7 100644
--- a/src/test/accounting_tests.cpp
+++ b/src/test/accounting_tests.cpp
@@ -5,6 +5,8 @@
#include "wallet.h"
#include "walletdb.h"
+#include "test/test_bitcoin.h"
+
#include <stdint.h>
#include <boost/foreach.hpp>
@@ -12,7 +14,7 @@
extern CWallet* pwalletMain;
-BOOST_AUTO_TEST_SUITE(accounting_tests)
+BOOST_FIXTURE_TEST_SUITE(accounting_tests, TestingSetup)
static void
GetResults(CWalletDB& walletdb, std::map<CAmount, CAccountingEntry>& results)