changeset 3337:f25c04d61768 draft

Merge pull request #1687 from gavinandresen/quietunit Suppress output when running unit tests.
author Pieter Wuille <pieter.wuille@gmail.com>
date Tue, 21 Aug 2012 07:07:51 -0700
parents 14bdab76124c (current diff) 7be8b786c900 (diff)
children 060485871634 cbb0154b8210
files
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);
--- 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;