aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2012-08-21 07:07:51 -0700
committerPieter Wuille <pieter.wuille@gmail.com>2012-08-21 07:07:51 -0700
commit143acc7672a2b6c863af3ee8a023d640b7e9527a (patch)
treea220cc45484db03e80853cc4f3494045af62b7d0 /src
parent4a4a0c11967e0f41f68da7df5c9acda94735066e (diff)
parent4d51be1cf36fee33df57c9c4500b221d355cf636 (diff)
Merge pull request #1687 from gavinandresen/quietunit
Suppress output when running unit tests.
Diffstat (limited to 'src')
-rw-r--r--src/test/test_bitcoin.cpp2
-rw-r--r--src/util.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_bitcoin.cpp b/src/test/test_bitcoin.cpp
index cae0bb6baf..bcf0907871 100644
--- a/src/test/test_bitcoin.cpp
+++ b/src/test/test_bitcoin.cpp
@@ -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);
diff --git a/src/util.cpp b/src/util.cpp
index c9654989af..69cc5f3424 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -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;