diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2011-10-03 16:14:13 -0400 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2011-12-19 12:40:19 -0500 |
commit | cc40ba2151a627b6da9af4932e0bee58e69aacb5 (patch) | |
tree | c8fd986dd581f35d01241b695ca1b2823c27f24a /src/test | |
parent | bf798734db4539a39edd6badf54a1c3aecf193e5 (diff) |
Global fixture to send output to console instead of debug.log
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test_bitcoin.cpp | 10 |
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) |