From a2508740649a0615fab92d93bc51a2401503fc0e Mon Sep 17 00:00:00 2001 From: Mykola Golub Date: Tue, 19 Jun 2018 16:22:15 +0300 Subject: [PATCH] librbd: fix gmock warnings introduced after 9e5b87c Signed-off-by: Mykola Golub (cherry picked from commit f434c5c70bc3f51849d1439dcd8448022cb5e056) --- src/test/librbd/deep_copy/test_mock_SnapshotCopyRequest.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test/librbd/deep_copy/test_mock_SnapshotCopyRequest.cc b/src/test/librbd/deep_copy/test_mock_SnapshotCopyRequest.cc index 4c4f42ad06d0c..f774ac0a432bb 100644 --- a/src/test/librbd/deep_copy/test_mock_SnapshotCopyRequest.cc +++ b/src/test/librbd/deep_copy/test_mock_SnapshotCopyRequest.cc @@ -138,6 +138,10 @@ public: .WillRepeatedly(WithArg<0>(Invoke([&mock_image_ctx](uint64_t features) { return (mock_image_ctx.features & features) != 0; }))); + EXPECT_CALL(mock_image_ctx, test_features(_)) + .WillRepeatedly(WithArg<0>(Invoke([&mock_image_ctx](uint64_t features) { + return (mock_image_ctx.features & features) != 0; + }))); } void expect_start_op(librbd::MockExclusiveLock &mock_exclusive_lock) { -- 2.39.5