Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/test/wallet_tests.cpp
Show All 27 Lines | |||||
#define RUN_TESTS 100 | #define RUN_TESTS 100 | ||||
// some tests fail 1% of the time due to bad luck. We repeat those tests this | // some tests fail 1% of the time due to bad luck. We repeat those tests this | ||||
// many times and only complain if all iterations of the test fail. | // many times and only complain if all iterations of the test fail. | ||||
#define RANDOM_REPEATS 5 | #define RANDOM_REPEATS 5 | ||||
std::vector<std::unique_ptr<CWalletTx>> wtxn; | std::vector<std::unique_ptr<CWalletTx>> wtxn; | ||||
typedef std::set<std::pair<const CWalletTx *, unsigned int>> CoinSet; | typedef std::set<CInputCoin> CoinSet; | ||||
BOOST_FIXTURE_TEST_SUITE(wallet_tests, WalletTestingSetup) | BOOST_FIXTURE_TEST_SUITE(wallet_tests, WalletTestingSetup) | ||||
// Critical section is used to prevent concurrent execution of | // Critical section is used to prevent concurrent execution of | ||||
// tests in this fixture | // tests in this fixture | ||||
static CCriticalSection walletCriticalSection; | static CCriticalSection walletCriticalSection; | ||||
static std::vector<COutput> vCoins; | static std::vector<COutput> vCoins; | ||||
▲ Show 20 Lines • Show All 640 Lines • Show Last 20 Lines |