Skip to content
Snippets Groups Projects
Commit d40dddf5 authored by Eric Cano's avatar Eric Cano
Browse files

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

parent 9d549b3b
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment