Skip to content

Commit

Permalink
test: Repeat deadlock tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Aug 2, 2020
1 parent 1f96be2 commit 42b2a95
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/sync_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,13 @@ BOOST_AUTO_TEST_CASE(potential_deadlock_detected)

RecursiveMutex 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;
TestPotentialDeadLockDetected(mutex1, mutex2);
// The second test ensures that lock tracking data have not been broken by exception.
TestPotentialDeadLockDetected(mutex1, mutex2);

#ifdef DEBUG_LOCKORDER
g_debug_lockorder_abort = prev;
Expand Down

0 comments on commit 42b2a95

Please sign in to comment.