mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 23:29:12 +01:00
tests: add a BasicTestingSetup and apply to all tests
Make sure that chainparams and logging is properly initialized. Doing this for every test may be overkill, but this initialization is so simple that that does not matter. This should fix the travis issues.
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include "script/script_error.h"
|
||||
#include "script/sign.h"
|
||||
#include "util.h"
|
||||
#include "test/test_bitcoin.h"
|
||||
|
||||
#if defined(HAVE_CONSENSUS_LIB)
|
||||
#include "script/bitcoinconsensus.h"
|
||||
@@ -53,7 +54,7 @@ read_json(const std::string& jsondata)
|
||||
return v.get_array();
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_SUITE(script_tests)
|
||||
BOOST_FIXTURE_TEST_SUITE(script_tests, BasicTestingSetup)
|
||||
|
||||
CMutableTransaction BuildCreditingTransaction(const CScript& scriptPubKey)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user