git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
bf79873
)
Global fixture to send output to console instead of debug.log
author
Gavin Andresen
<gavinandresen@gmail.com>
Mon, 3 Oct 2011 20:14:13 +0000 (16:14 -0400)
committer
Gavin Andresen
<gavinandresen@gmail.com>
Mon, 19 Dec 2011 17:40:19 +0000 (12:40 -0500)
src/test/test_bitcoin.cpp
patch
|
blob
|
history
diff --git
a/src/test/test_bitcoin.cpp
b/src/test/test_bitcoin.cpp
index
c7f45a0
..
4b52b74
100644
(file)
--- a/
src/test/test_bitcoin.cpp
+++ b/
src/test/test_bitcoin.cpp
@@
-4,6
+4,16
@@
#include "main.h"
#include "wallet.h"
+extern bool fPrintToConsole;
+struct TestingSetup {
+ TestingSetup() {
+ fPrintToConsole = true; // don't want to write to debug.log file
+ }
+ ~TestingSetup() { }
+};
+
+BOOST_GLOBAL_FIXTURE(TestingSetup);
+
CWallet* pwalletMain;
void Shutdown(void* parg)