print large orphan warning BEFORE deleting pvMsg
[novacoin.git] / src / test / test_bitcoin.cpp
1 #define BOOST_TEST_MODULE Bitcoin Test Suite
2 #include <boost/test/unit_test.hpp>
3
4 #include "main.h"
5 #include "wallet.h"
6
7 CWallet* pwalletMain;
8
9 extern bool fPrintToConsole;
10 struct TestingSetup {
11     TestingSetup() {
12         fPrintToConsole = true; // don't want to write to debug.log file
13         pwalletMain = new CWallet();
14         RegisterWallet(pwalletMain);
15     }
16     ~TestingSetup()
17     {
18         delete pwalletMain;
19         pwalletMain = NULL;
20     }
21 };
22
23 BOOST_GLOBAL_FIXTURE(TestingSetup);
24
25 void Shutdown(void* parg)
26 {
27   exit(0);
28 }