Merge pull request #1687 from gavinandresen/quietunit

Suppress output when running unit tests.
This commit is contained in:
Pieter Wuille 2012-08-21 07:07:51 -07:00
commit 143acc7672
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@ extern void noui_connect();
struct 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();
bitdb.MakeMock();
LoadBlockIndex(true);

View file

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