mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-05 13:11:57 +02:00
test: Repeat deadlock tests
This commit is contained in:
@ -40,9 +40,13 @@ BOOST_AUTO_TEST_CASE(potential_deadlock_detected)
|
|||||||
|
|
||||||
RecursiveMutex rmutex1, rmutex2;
|
RecursiveMutex rmutex1, rmutex2;
|
||||||
TestPotentialDeadLockDetected(rmutex1, rmutex2);
|
TestPotentialDeadLockDetected(rmutex1, rmutex2);
|
||||||
|
// The second test ensures that lock tracking data have not been broken by exception.
|
||||||
|
TestPotentialDeadLockDetected(rmutex1, rmutex2);
|
||||||
|
|
||||||
Mutex mutex1, mutex2;
|
Mutex mutex1, mutex2;
|
||||||
TestPotentialDeadLockDetected(mutex1, mutex2);
|
TestPotentialDeadLockDetected(mutex1, mutex2);
|
||||||
|
// The second test ensures that lock tracking data have not been broken by exception.
|
||||||
|
TestPotentialDeadLockDetected(mutex1, mutex2);
|
||||||
|
|
||||||
#ifdef DEBUG_LOCKORDER
|
#ifdef DEBUG_LOCKORDER
|
||||||
g_debug_lockorder_abort = prev;
|
g_debug_lockorder_abort = prev;
|
||||||
|
Reference in New Issue
Block a user