diff options
| author | Gavin Andresen <[email protected]> | 2011-10-03 16:14:13 -0400 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2011-12-19 12:40:19 -0500 |
| commit | cc40ba2151a627b6da9af4932e0bee58e69aacb5 (patch) | |
| tree | c8fd986dd581f35d01241b695ca1b2823c27f24a /src/test/test_bitcoin.cpp | |
| parent | Support 3 new multisignature IsStandard transactions (diff) | |
| download | discoin-cc40ba2151a627b6da9af4932e0bee58e69aacb5.tar.xz discoin-cc40ba2151a627b6da9af4932e0bee58e69aacb5.zip | |
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.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/test_bitcoin.cpp b/src/test/test_bitcoin.cpp index c7f45a087..4b52b74cf 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) |