aboutsummaryrefslogtreecommitdiff
path: root/src/test/util_tests.cpp
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2019-03-29 15:22:48 +0100
committerpracticalswift <practicalswift@users.noreply.github.com>2019-03-29 15:31:48 +0100
commit0aef39d0678ec2f26633028d44eea0ba0087e7c0 (patch)
tree95931da0135f233967e948c86236b3e71779fe42 /src/test/util_tests.cpp
parent5fd73c8694b51371b9a72e984783db836b6e73c9 (diff)
Silence "Test case [...] did not check any assertions" warnings when running "test_bitcoin --log_level=test_suite"
Diffstat (limited to 'src/test/util_tests.cpp')
-rw-r--r--src/test/util_tests.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/util_tests.cpp b/src/test/util_tests.cpp
index e106bdeb65..5cf5fa417a 100644
--- a/src/test/util_tests.cpp
+++ b/src/test/util_tests.cpp
@@ -36,8 +36,10 @@ BOOST_AUTO_TEST_CASE(util_criticalsection)
do {
TRY_LOCK(cs, lockTest);
- if (lockTest)
+ if (lockTest) {
+ BOOST_CHECK(true); // Needed to suppress "Test case [...] did not check any assertions"
break;
+ }
BOOST_ERROR("break was swallowed!");
} while(0);