aboutsummaryrefslogtreecommitdiff
path: root/src/test/sync_tests.cpp
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-06-22 18:21:12 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-06-22 18:24:29 +0300
commitbbe9cf4fe4ff9a8d1ea557fb763c76100db07679 (patch)
tree79a3d276e11e188e24149ec1b08a9383cb951ea8 /src/test/sync_tests.cpp
parent35599344c886b62f198e35fd940c1ab15c4a9f90 (diff)
downloadbitcoin-bbe9cf4fe4ff9a8d1ea557fb763c76100db07679.tar.xz
test: Improve "potential deadlock detected" exception message
Diffstat (limited to 'src/test/sync_tests.cpp')
-rw-r--r--src/test/sync_tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/sync_tests.cpp b/src/test/sync_tests.cpp
index 5c6c2ee38e..3ea8714f3a 100644
--- a/src/test/sync_tests.cpp
+++ b/src/test/sync_tests.cpp
@@ -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