Skip to content

Commit 3b7a739

Browse files
committed
merge bitcoin#23223: Disable lock contention logging in checkqueue_tests
1 parent b383609 commit 3b7a739

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/test/checkqueue_tests.cpp

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,17 @@
1717
#include <utility>
1818
#include <vector>
1919

20-
BOOST_FIXTURE_TEST_SUITE(checkqueue_tests, TestingSetup)
20+
/**
21+
* Identical to TestingSetup but excludes lock contention logging, as some of
22+
* these tests are designed to be heavily contested to trigger race conditions
23+
* or other issues.
24+
*/
25+
struct NoLockLoggingTestingSetup : public TestingSetup {
26+
NoLockLoggingTestingSetup()
27+
: TestingSetup{CBaseChainParams::MAIN, /*extra_args=*/{"-debugexclude=lock"}} {}
28+
};
29+
30+
BOOST_FIXTURE_TEST_SUITE(checkqueue_tests, NoLockLoggingTestingSetup)
2131

2232
static const unsigned int QUEUE_BATCH_SIZE = 128;
2333
static const int SCRIPT_CHECK_THREADS = 3;

0 commit comments

Comments
 (0)