merge bitcoin#23223: Disable lock contention logging in checkqueue_tests

This commit is contained in:
Kittywhiskers Van Gogh 2021-10-07 20:07:58 +02:00
parent b383609a72
commit 3b7a7394a9
No known key found for this signature in database
GPG Key ID: 30CD0C065E5C4AAD

View File

@ -17,7 +17,17 @@
#include <utility>
#include <vector>
BOOST_FIXTURE_TEST_SUITE(checkqueue_tests, TestingSetup)
/**
* Identical to TestingSetup but excludes lock contention logging, as some of
* these tests are designed to be heavily contested to trigger race conditions
* or other issues.
*/
struct NoLockLoggingTestingSetup : public TestingSetup {
NoLockLoggingTestingSetup()
: TestingSetup{CBaseChainParams::MAIN, /*extra_args=*/{"-debugexclude=lock"}} {}
};
BOOST_FIXTURE_TEST_SUITE(checkqueue_tests, NoLockLoggingTestingSetup)
static const unsigned int QUEUE_BATCH_SIZE = 128;
static const int SCRIPT_CHECK_THREADS = 3;