mirror of
https://github.com/ceph/ceph
synced 2025-01-01 08:32:24 +00:00
Merge pull request #23827 from trociny/wip-mock-valgrind
test/librbd: fix valgrind warnings Reviewed-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
commit
221359cc89
@ -71,7 +71,7 @@ public:
|
||||
auto rados_client = (*io_ctx_impl)->get_mock_rados_client();
|
||||
|
||||
EXPECT_CALL(*rados_client, create_ioctx(_, _))
|
||||
.WillOnce(Return(*io_ctx_impl));
|
||||
.WillOnce(DoAll(GetReference(*io_ctx_impl), Return(*io_ctx_impl)));
|
||||
}
|
||||
|
||||
void expect_child_detach(MockImageCtx &mock_image_ctx,
|
||||
|
@ -117,7 +117,8 @@ struct MockImageCtx {
|
||||
enable_alloc_hint(image_ctx.enable_alloc_hint),
|
||||
ignore_migrating(image_ctx.ignore_migrating),
|
||||
mtime_update_interval(image_ctx.mtime_update_interval),
|
||||
atime_update_interval(image_ctx.atime_update_interval)
|
||||
atime_update_interval(image_ctx.atime_update_interval),
|
||||
cache(image_ctx.cache)
|
||||
{
|
||||
md_ctx.dup(image_ctx.md_ctx);
|
||||
data_ctx.dup(image_ctx.data_ctx);
|
||||
|
Loading…
Reference in New Issue
Block a user