Commit 362db651 authored by Eric Cano's avatar Eric Cano
Browse files

Added unit test to ensure locks can be released from deleted objects.

parent a6cba183
......@@ -66,7 +66,12 @@ TEST_P(BackendAbstractTest, LockingInterface) {
m_os->lockExclusive(testObjectName));
lock->release();
}
// We should also tolerate releasing a lock taken on an object deleted
// in the mean time
std::unique_ptr<cta::objectstore::Backend::ScopedLock> lock(
m_os->lockExclusive(testObjectName));
m_os->remove(testObjectName);
ASSERT_NO_THROW(lock->release());
}
TEST_P(BackendAbstractTest, ParametersInterface) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment