diff options
author | Jon Atack <jon@atack.com> | 2022-04-01 12:23:01 +0200 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2022-04-08 13:26:34 +0100 |
commit | 6374e24887e3957cfcf17841a8c48cac2ffbda4f (patch) | |
tree | 4d0dc17a620e1215c2c0c61682cc882d77ce0fb3 /src/test/checkqueue_tests.cpp | |
parent | 1ea76767d081054fe40c98f241b484d18133389e (diff) | |
download | bitcoin-6374e24887e3957cfcf17841a8c48cac2ffbda4f.tar.xz |
Put lock logging behind DEBUG_LOCKCONTENTION preprocessor directive
Github-Pull: #24770
Rebased-From: 39a34b6877945908759f6a2322f60852e521e2ee
Diffstat (limited to 'src/test/checkqueue_tests.cpp')
-rw-r--r-- | src/test/checkqueue_tests.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/test/checkqueue_tests.cpp b/src/test/checkqueue_tests.cpp index 153ccd984b..0d95bd7670 100644 --- a/src/test/checkqueue_tests.cpp +++ b/src/test/checkqueue_tests.cpp @@ -19,13 +19,17 @@ #include <vector> /** - * 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. + * Identical to TestingSetup but excludes lock contention logging if + * `DEBUG_LOCKCONTENTION` is defined, as some of these tests are designed to be + * heavily contested to trigger race conditions or other issues. */ struct NoLockLoggingTestingSetup : public TestingSetup { NoLockLoggingTestingSetup() +#ifdef DEBUG_LOCKCONTENTION : TestingSetup{CBaseChainParams::MAIN, /*extra_args=*/{"-debugexclude=lock"}} {} +#else + : TestingSetup{CBaseChainParams::MAIN} {} +#endif }; BOOST_FIXTURE_TEST_SUITE(checkqueue_tests, NoLockLoggingTestingSetup) |