Skip to content

Commit 42b2a95

Browse files
committed
test: Repeat deadlock tests
1 parent 1f96be2 commit 42b2a95

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test/sync_tests.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,13 @@ BOOST_AUTO_TEST_CASE(potential_deadlock_detected)
4040

4141
RecursiveMutex rmutex1, rmutex2;
4242
TestPotentialDeadLockDetected(rmutex1, rmutex2);
43+
// The second test ensures that lock tracking data have not been broken by exception.
44+
TestPotentialDeadLockDetected(rmutex1, rmutex2);
4345

4446
Mutex mutex1, mutex2;
4547
TestPotentialDeadLockDetected(mutex1, mutex2);
48+
// The second test ensures that lock tracking data have not been broken by exception.
49+
TestPotentialDeadLockDetected(mutex1, mutex2);
4650

4751
#ifdef DEBUG_LOCKORDER
4852
g_debug_lockorder_abort = prev;

0 commit comments

Comments
 (0)