]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test: fixup rbd tests as a side effect of reference counting 30397/head
authorVenky Shankar <vshankar@redhat.com>
Mon, 12 Feb 2018 03:29:12 +0000 (22:29 -0500)
committerMahati Chamarthy <mahati.chamarthy@intel.com>
Mon, 11 Nov 2019 08:54:06 +0000 (14:24 +0530)
commitf6b4d3d0f318a21f3e0975b8d061502cfd2fda67
treeb92aa7d4ae832203cc41d194533c1fc5426b2f7a
parentdcc5d3ed66ba0e25d31947546bd6b73479b94a4f
test: fixup rbd tests as a side effect of reference counting

Allocate heap objects for Journal, ExclusiveLock and ObjectMap
as these classes are not reference counted. However mock objects
for these classes can be allocated on the stack as ->get() and
->put() operations are no-op.

Signed-off-by: Mahati Chamarthy <mahati.chamarthy@intel.com>
Signed-off-by: Venky Shankar <vshankar@redhat.com>
17 files changed:
src/test/librbd/exclusive_lock/test_mock_PostAcquireRequest.cc
src/test/librbd/exclusive_lock/test_mock_PreReleaseRequest.cc
src/test/librbd/image/test_mock_PreRemoveRequest.cc
src/test/librbd/image/test_mock_RefreshRequest.cc
src/test/librbd/journal/test_Replay.cc
src/test/librbd/mock/MockExclusiveLock.h
src/test/librbd/mock/MockJournal.h
src/test/librbd/mock/MockObjectMap.h
src/test/librbd/object_map/test_mock_SnapshotRemoveRequest.cc
src/test/librbd/operation/test_mock_DisableFeaturesRequest.cc
src/test/librbd/operation/test_mock_SnapshotRollbackRequest.cc
src/test/librbd/test_ObjectMap.cc
src/test/librbd/test_internal.cc
src/test/librbd/test_mock_DeepCopyRequest.cc
src/test/librbd/test_mock_ExclusiveLock.cc
src/test/librbd/test_mock_Journal.cc
src/test/librbd/test_mock_ObjectMap.cc