diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-03-12 09:34:42 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-03-12 09:45:22 +0100 |
| commit | 92fd887fd42a61e95f716d3193104827f60f856c (patch) | |
| tree | 3768ed6d0cba9128dd6fc5b8caa65c2dafac7bf1 /src/test/script_tests.cpp | |
| parent | Merge pull request #5871 (diff) | |
| download | discoin-92fd887fd42a61e95f716d3193104827f60f856c.tar.xz discoin-92fd887fd42a61e95f716d3193104827f60f856c.zip | |
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.
Diffstat (limited to 'src/test/script_tests.cpp')
| -rw-r--r-- | src/test/script_tests.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/script_tests.cpp b/src/test/script_tests.cpp index e410b5971..c0614cca4 100644 --- a/src/test/script_tests.cpp +++ b/src/test/script_tests.cpp @@ -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) { |