tests: change main and wallet tests to BOOST_FIXTURE_TEST_SUITE
Avoid this travis error: test_bitcoin: chainparams.cpp:330: const CChainParams& Params(): Assertion `pCurrentParams' failed. unknown location(0): fatal error in "subsidy_limit_test": signal: SIGABRT (application abort requested) test/allocator_tests.cpp(116): last checkpoint
This commit is contained in:
parent
cdae53e456
commit
8cbe1f4f58
2 changed files with 6 additions and 2 deletions
|
@ -5,9 +5,11 @@
|
||||||
#include "primitives/transaction.h"
|
#include "primitives/transaction.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
|
||||||
|
#include "test/test_bitcoin.h"
|
||||||
|
|
||||||
#include <boost/test/unit_test.hpp>
|
#include <boost/test/unit_test.hpp>
|
||||||
|
|
||||||
BOOST_AUTO_TEST_SUITE(main_tests)
|
BOOST_FIXTURE_TEST_SUITE(main_tests, TestingSetup)
|
||||||
|
|
||||||
BOOST_AUTO_TEST_CASE(subsidy_limit_test)
|
BOOST_AUTO_TEST_CASE(subsidy_limit_test)
|
||||||
{
|
{
|
||||||
|
|
|
@ -9,6 +9,8 @@
|
||||||
#include <utility>
|
#include <utility>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#include "test/test_bitcoin.h"
|
||||||
|
|
||||||
#include <boost/foreach.hpp>
|
#include <boost/foreach.hpp>
|
||||||
#include <boost/test/unit_test.hpp>
|
#include <boost/test/unit_test.hpp>
|
||||||
|
|
||||||
|
@ -23,7 +25,7 @@ using namespace std;
|
||||||
|
|
||||||
typedef set<pair<const CWalletTx*,unsigned int> > CoinSet;
|
typedef set<pair<const CWalletTx*,unsigned int> > CoinSet;
|
||||||
|
|
||||||
BOOST_AUTO_TEST_SUITE(wallet_tests)
|
BOOST_FIXTURE_TEST_SUITE(wallet_tests, TestingSetup)
|
||||||
|
|
||||||
static CWallet wallet;
|
static CWallet wallet;
|
||||||
static vector<COutput> vCoins;
|
static vector<COutput> vCoins;
|
||||||
|
|
Loading…
Reference in a new issue