test: Improve "potential deadlock detected" exception message

This commit is contained in:
Hennadii Stepanov
2020-06-22 18:21:12 +03:00
parent 35599344c8
commit bbe9cf4fe4
2 changed files with 6 additions and 2 deletions

View File

@@ -18,7 +18,7 @@ void TestPotentialDeadLockDetected(MutexType& mutex1, MutexType& mutex2)
try {
LOCK2(mutex2, mutex1);
} catch (const std::logic_error& e) {
BOOST_CHECK_EQUAL(e.what(), "potential deadlock detected");
BOOST_CHECK_EQUAL(e.what(), "potential deadlock detected: mutex1 -> mutex2 -> mutex1");
error_thrown = true;
}
#ifdef DEBUG_LOCKORDER