# HG changeset patch # User Pieter Wuille # Date 1345558071 25200 # Node ID f25c04d61768d5fcdae75b05e5928decc5d55d0f # Parent 14bdab76124c6d5ac8fc3e2e80244e88d61744a9# Parent 7be8b786c9006c9236023c0e919bf86c308f38f7 Merge pull request #1687 from gavinandresen/quietunit Suppress output when running unit tests. diff --git a/src/test/test_bitcoin.cpp b/src/test/test_bitcoin.cpp --- a/src/test/test_bitcoin.cpp +++ b/src/test/test_bitcoin.cpp @@ -13,7 +13,7 @@ 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); diff --git a/src/util.cpp b/src/util.cpp --- a/src/util.cpp +++ b/src/util.cpp @@ -204,7 +204,7 @@ ret = vprintf(pszFormat, arg_ptr); va_end(arg_ptr); } - else + else if (!fPrintToDebugger) { // print to debug.log static FILE* fileout = NULL;