aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_bitcoin.cpp
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2011-10-03 16:14:13 -0400
committerGavin Andresen <gavinandresen@gmail.com>2011-12-19 12:40:19 -0500
commitcc40ba2151a627b6da9af4932e0bee58e69aacb5 (patch)
treec8fd986dd581f35d01241b695ca1b2823c27f24a /src/test/test_bitcoin.cpp
parentbf798734db4539a39edd6badf54a1c3aecf193e5 (diff)
Global fixture to send output to console instead of debug.log
Diffstat (limited to 'src/test/test_bitcoin.cpp')
-rw-r--r--src/test/test_bitcoin.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/test_bitcoin.cpp b/src/test/test_bitcoin.cpp
index c7f45a0877..4b52b74cfe 100644
--- a/src/test/test_bitcoin.cpp
+++ b/src/test/test_bitcoin.cpp
@@ -4,6 +4,16 @@
#include "main.h"
#include "wallet.h"
+extern bool fPrintToConsole;
+struct TestingSetup {
+ TestingSetup() {
+ fPrintToConsole = true; // don't want to write to debug.log file
+ }
+ ~TestingSetup() { }
+};
+
+BOOST_GLOBAL_FIXTURE(TestingSetup);
+
CWallet* pwalletMain;
void Shutdown(void* parg)