Global fixture to send output to console instead of debug.log

This commit is contained in:
Gavin Andresen 2011-10-03 16:14:13 -04:00
parent bf798734db
commit cc40ba2151
1 changed files with 10 additions and 0 deletions

View File

@ -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)