]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test_memstore_clone: use StoreTestFixture to do the setup/teardown 11190/head
authorKefu Chai <kchai@redhat.com>
Thu, 22 Sep 2016 06:09:04 +0000 (14:09 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 22 Sep 2016 07:50:47 +0000 (15:50 +0800)
commit0cad3dc1839b099cc14ebc758ed969bb7d435925
tree394dd99016eabdd23bb8014b2be4cc168c60e409
parentafac9345fd54e9ff69bdeefe4557d8235c4e3960
test_memstore_clone: use StoreTestFixture to do the setup/teardown

rename test case name from `MemStore` to `MemStoreClone`, because
if we use `TEST_F` to group the tests into a fixture, `MemStore`
will be used as the class name of the fixture, and hence conflicts
with the existing `MemStore` class under testing.

but the object store is created and destroyed for every test. before
this change, we do this for every test case. if it's a concern
we need to use SetUpTestCase() and TearDownTestCase() instead.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/objectstore/CMakeLists.txt
src/test/objectstore/test_memstore_clone.cc