aboutsummaryrefslogtreecommitdiff
path: root/src/test
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
parent5fd73c8694b51371b9a72e984783db836b6e73c9 (diff)
Silence "Test case [...] did not check any assertions" warnings when running "test_bitcoin --log_level=test_suite"
Diffstat (limited to 'src/test')
-rw-r--r--src/test/blockencodings_tests.cpp1
-rw-r--r--src/test/util_tests.cpp4
2 files changed, 4 insertions, 1 deletions
diff --git a/src/test/blockencodings_tests.cpp b/src/test/blockencodings_tests.cpp
index 607af8a32a..0135421d04 100644
--- a/src/test/blockencodings_tests.cpp
+++ b/src/test/blockencodings_tests.cpp
@@ -386,6 +386,7 @@ BOOST_AUTO_TEST_CASE(TransactionsRequestDeserializationOverflowTest) {
BOOST_CHECK(0);
} catch(std::ios_base::failure &) {
// deserialize should fail
+ BOOST_CHECK(true); // Needed to suppress "Test case [...] did not check any assertions"
}
}
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);