]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test: handle the case when ObjectStore::create returns NULL
authorZhiqiang Wang <zhiqiang.wang@intel.com>
Thu, 27 Aug 2015 03:17:17 +0000 (11:17 +0800)
committerZhiqiang Wang <zhiqiang.wang@intel.com>
Thu, 27 Aug 2015 03:17:17 +0000 (11:17 +0800)
commit83ba59780e0ed7ac7d4c4047d01dc15f879252d1
tree4f58f491e298ba14c6a2b5d8f853736488a0ceaf
parent6a735d625729f16ccb533a128097a0f623b05b14
test: handle the case when ObjectStore::create returns NULL

When the objectstore type doesn't exist, NULL is returned in SetUp.
Handle the NULL return code to avoid a segment fault.

Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
src/test/objectstore/store_test.cc