From: Gavin Andresen Date: Mon, 3 Oct 2011 20:14:13 +0000 (-0400) Subject: Global fixture to send output to console instead of debug.log X-Git-Tag: v0.4.0-unstable~129^2~306^2~8 X-Git-Url: https://git.novaco.in/?a=commitdiff_plain;h=cc40ba2151a627b6da9af4932e0bee58e69aacb5;p=novacoin.git Global fixture to send output to console instead of debug.log --- diff --git a/src/test/test_bitcoin.cpp b/src/test/test_bitcoin.cpp index c7f45a0..4b52b74 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)