We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a21dc46 commit db058efCopy full SHA for db058ef
src/test/sync_tests.cpp
@@ -50,10 +50,8 @@ void TestDoubleLock(bool should_throw)
50
MutexType m;
51
ENTER_CRITICAL_SECTION(m);
52
if (should_throw) {
53
- BOOST_CHECK_EXCEPTION(
54
- TestDoubleLock2(m), std::logic_error, [](const std::logic_error& e) {
55
- return strcmp(e.what(), "double lock detected") == 0;
56
- });
+ BOOST_CHECK_EXCEPTION(TestDoubleLock2(m), std::logic_error,
+ HasReason("double lock detected"));
57
} else {
58
BOOST_CHECK_NO_THROW(TestDoubleLock2(m));
59
}
0 commit comments