Browse Source

Merge pull request #1687 from gavinandresen/quietunit

Suppress output when running unit tests.
0.8
Pieter Wuille 12 years ago
parent
commit
143acc7672
  1. 2
      src/test/test_bitcoin.cpp
  2. 2
      src/util.cpp

2
src/test/test_bitcoin.cpp

@ -13,7 +13,7 @@ extern void noui_connect();
struct TestingSetup { struct TestingSetup {
TestingSetup() { TestingSetup() {
fPrintToConsole = true; // don't want to write to debug.log file fPrintToDebugger = true; // don't want to write to debug.log file
noui_connect(); noui_connect();
bitdb.MakeMock(); bitdb.MakeMock();
LoadBlockIndex(true); LoadBlockIndex(true);

2
src/util.cpp

@ -204,7 +204,7 @@ inline int OutputDebugStringF(const char* pszFormat, ...)
ret = vprintf(pszFormat, arg_ptr); ret = vprintf(pszFormat, arg_ptr);
va_end(arg_ptr); va_end(arg_ptr);
} }
else else if (!fPrintToDebugger)
{ {
// print to debug.log // print to debug.log
static FILE* fileout = NULL; static FILE* fileout = NULL;

Loading…
Cancel
Save