Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
362db651
Commit
362db651
authored
Nov 05, 2015
by
Eric Cano
Browse files
Added unit test to ensure locks can be released from deleted objects.
parent
a6cba183
Changes
1
Hide whitespace changes
Inline
Side-by-side
objectstore/BackendTest.cpp
View file @
362db651
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment