]> Git Repo - VerusCoin.git/commitdiff
tests: change main and wallet tests to BOOST_FIXTURE_TEST_SUITE
authorWladimir J. van der Laan <[email protected]>
Mon, 9 Mar 2015 14:04:12 +0000 (15:04 +0100)
committerWladimir J. van der Laan <[email protected]>
Mon, 9 Mar 2015 14:04:59 +0000 (15:04 +0100)
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

src/test/main_tests.cpp
src/test/wallet_tests.cpp

index 2a72a220a489192945ef37660bd01340b6e93042..1927f3deab84c6e63426d96f77a57fcf5709cb04 100644 (file)
@@ -5,9 +5,11 @@
 #include "primitives/transaction.h"
 #include "main.h"
 
+#include "test/test_bitcoin.h"
+
 #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)
 {
index 289cc8c9055ba3425482f58df43653baae806a6a..25c8fab335468f3b1904f912a1987a9ea21a3fbe 100644 (file)
@@ -9,6 +9,8 @@
 #include <utility>
 #include <vector>
 
+#include "test/test_bitcoin.h"
+
 #include <boost/foreach.hpp>
 #include <boost/test/unit_test.hpp>
 
@@ -23,7 +25,7 @@ using namespace std;
 
 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 vector<COutput> vCoins;
This page took 0.026025 seconds and 4 git commands to generate.