mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 18:53:23 -03:00
Silence "Test case [...] did not check any assertions" warnings when running "test_bitcoin --log_level=test_suite"
This commit is contained in:
parent
5fd73c8694
commit
0aef39d067
2 changed files with 4 additions and 1 deletions
|
@ -386,6 +386,7 @@ BOOST_AUTO_TEST_CASE(TransactionsRequestDeserializationOverflowTest) {
|
||||||
BOOST_CHECK(0);
|
BOOST_CHECK(0);
|
||||||
} catch(std::ios_base::failure &) {
|
} catch(std::ios_base::failure &) {
|
||||||
// deserialize should fail
|
// deserialize should fail
|
||||||
|
BOOST_CHECK(true); // Needed to suppress "Test case [...] did not check any assertions"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,8 +36,10 @@ BOOST_AUTO_TEST_CASE(util_criticalsection)
|
||||||
|
|
||||||
do {
|
do {
|
||||||
TRY_LOCK(cs, lockTest);
|
TRY_LOCK(cs, lockTest);
|
||||||
if (lockTest)
|
if (lockTest) {
|
||||||
|
BOOST_CHECK(true); // Needed to suppress "Test case [...] did not check any assertions"
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
BOOST_ERROR("break was swallowed!");
|
BOOST_ERROR("break was swallowed!");
|
||||||
} while(0);
|
} while(0);
|
||||||
|
|
Loading…
Add table
Reference in a new issue