Browse Source

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

0.8
Gavin Andresen 13 years ago
parent
commit
cc40ba2151
  1. 10
      src/test/test_bitcoin.cpp

10
src/test/test_bitcoin.cpp

@ -4,6 +4,16 @@
#include "main.h" #include "main.h"
#include "wallet.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; CWallet* pwalletMain;
void Shutdown(void* parg) void Shutdown(void* parg)

Loading…
Cancel
Save