|
|
@ -8,6 +8,7 @@
|
|
|
|
#include <boost/test/unit_test.hpp>
|
|
|
|
#include <boost/test/unit_test.hpp>
|
|
|
|
|
|
|
|
|
|
|
|
#include <mutex>
|
|
|
|
#include <mutex>
|
|
|
|
|
|
|
|
#include <stdexcept>
|
|
|
|
|
|
|
|
|
|
|
|
namespace {
|
|
|
|
namespace {
|
|
|
|
template <typename MutexType>
|
|
|
|
template <typename MutexType>
|
|
|
@ -76,7 +77,7 @@ void TestInconsistentLockOrderDetected(MutexType& mutex1, MutexType& mutex2) NO_
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} // namespace
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
|
|
|
|
BOOST_FIXTURE_TEST_SUITE(sync_tests, BasicTestingSetup)
|
|
|
|
BOOST_AUTO_TEST_SUITE(sync_tests)
|
|
|
|
|
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(potential_deadlock_detected)
|
|
|
|
BOOST_AUTO_TEST_CASE(potential_deadlock_detected)
|
|
|
|
{
|
|
|
|
{
|
|
|
|