Skip to content

Commit 0aef39d

Browse files
Silence "Test case [...] did not check any assertions" warnings when running "test_bitcoin --log_level=test_suite"
1 parent 5fd73c8 commit 0aef39d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/test/blockencodings_tests.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,7 @@ BOOST_AUTO_TEST_CASE(TransactionsRequestDeserializationOverflowTest) {
386386
BOOST_CHECK(0);
387387
} catch(std::ios_base::failure &) {
388388
// deserialize should fail
389+
BOOST_CHECK(true); // Needed to suppress "Test case [...] did not check any assertions"
389390
}
390391
}
391392

src/test/util_tests.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ BOOST_AUTO_TEST_CASE(util_criticalsection)
3636

3737
do {
3838
TRY_LOCK(cs, lockTest);
39-
if (lockTest)
39+
if (lockTest) {
40+
BOOST_CHECK(true); // Needed to suppress "Test case [...] did not check any assertions"
4041
break;
42+
}
4143

4244
BOOST_ERROR("break was swallowed!");
4345
} while(0);

0 commit comments

Comments
 (0)