8#include <boost/test/unit_test.hpp>
12BOOST_AUTO_TEST_SUITE(reverselock_tests)
55 bool prev = g_debug_lockorder_abort;
56 g_debug_lockorder_abort =
false;
59 BOOST_CHECK_EXCEPTION(
REVERSE_LOCK(lock2, mutex2), std::logic_error,
HasReason(
"mutex2 was not most recent critical section locked"));
62 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)
#define AssertLockNotHeld(cs)
#define REVERSE_LOCK(g, cs)