diff options
author | Jon Atack <jon@atack.com> | 2022-04-01 12:23:01 +0200 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2022-04-05 12:49:48 +0200 |
commit | 39a34b6877945908759f6a2322f60852e521e2ee (patch) | |
tree | 7a170824a35af9d86470499730f2568f1873388b /src/test/checkqueue_tests.cpp | |
parent | 7ab9fc32d6a88d0c9a008d6e63ddc7460e5ea0c5 (diff) | |
download | bitcoin-39a34b6877945908759f6a2322f60852e521e2ee.tar.xz |
Put lock logging behind DEBUG_LOCKCONTENTION preprocessor directive
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) |