Mercurial > hg > bitcoin
changeset 1599:4fe968166e9c draft
Global fixture to send output to console instead of debug.log
author | Gavin Andresen <gavinandresen@gmail.com> |
---|---|
date | Mon, 03 Oct 2011 16:14:13 -0400 |
parents | 057a59e89d51 |
children | dc663e46a784 |
files | src/test/test_bitcoin.cpp |
diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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)