mirror of
https://github.com/jwinterm/myriadcoin.git
synced 2026-11-15 09:23:56 +01:00
35 lines
577 B
C++
35 lines
577 B
C++
#define BOOST_TEST_MODULE Bitcoin Test Suite
|
|
#include <boost/test/unit_test.hpp>
|
|
|
|
#include "main.h"
|
|
#include "wallet.h"
|
|
|
|
CWallet* pwalletMain;
|
|
|
|
extern bool fPrintToConsole;
|
|
struct TestingSetup {
|
|
TestingSetup() {
|
|
fPrintToConsole = true; // don't want to write to debug.log file
|
|
pwalletMain = new CWallet();
|
|
RegisterWallet(pwalletMain);
|
|
}
|
|
~TestingSetup()
|
|
{
|
|
delete pwalletMain;
|
|
pwalletMain = NULL;
|
|
}
|
|
};
|
|
|
|
BOOST_GLOBAL_FIXTURE(TestingSetup);
|
|
|
|
void Shutdown(void* parg)
|
|
{
|
|
exit(0);
|
|
}
|
|
|
|
void StartShutdown()
|
|
{
|
|
exit(0);
|
|
}
|
|
|