8#include <boost/test/unit_test.hpp>
12BOOST_AUTO_TEST_SUITE(reverselock_tests)
53 bool prev = g_debug_lockorder_abort;
54 g_debug_lockorder_abort =
false;
57 BOOST_CHECK_EXCEPTION(
REVERSE_LOCK(lock2), std::logic_error,
HasReason(
"lock2 was not most recent critical section locked"));
60 g_debug_lockorder_abort = prev;
BOOST_CHECK_EXCEPTION predicates to check the specific validation error.
BOOST_AUTO_TEST_SUITE_END()
#define BOOST_CHECK(expr)
BOOST_AUTO_TEST_CASE(reverselock_basics)
#define WAIT_LOCK(cs, name)