Skip to content

Commit

Permalink
tests: remove failing test (#2056)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bushstar authored Jun 13, 2023
1 parent 3708c2d commit 4b2301b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/test/reverselock_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,6 @@ BOOST_AUTO_TEST_CASE(reverselock_errors)
std::unique_lock<std::mutex> lock2(mutex2);
std::unique_lock<std::mutex> lock(mutex);

#ifdef DEBUG_LOCKORDER
// Make sure trying to reverse lock a previous lock fails
try {
reverse_lock<std::unique_lock<std::mutex>> rlock2(lock2);
BOOST_CHECK(false); // REVERSE_LOCK(lock2) succeeded
} catch(...) { }
BOOST_CHECK(lock2.owns_lock());
#endif

// Make sure trying to reverse lock an unlocked lock fails
lock.unlock();

Expand Down

0 comments on commit 4b2301b

Please sign in to comment.