From: Willem Jan Withagen Date: Wed, 22 Mar 2017 14:03:32 +0000 (+0100) Subject: test/objectstore/store_test_fixture.cc: Exclude bluestore code if required. X-Git-Tag: v12.0.2~328^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F14085%2Fhead;p=ceph.git test/objectstore/store_test_fixture.cc: Exclude bluestore code if required. Signed-off-by: Willem Jan Withagen --- diff --git a/src/test/objectstore/store_test_fixture.cc b/src/test/objectstore/store_test_fixture.cc index 898f27322440..e80bde8315e7 100644 --- a/src/test/objectstore/store_test_fixture.cc +++ b/src/test/objectstore/store_test_fixture.cc @@ -5,7 +5,9 @@ #include "common/errno.h" #include "os/ObjectStore.h" +#if defined(HAVE_LIBAIO) #include "os/bluestore/BlueStore.h" +#endif #include "store_test_fixture.h" static void rm_r(const string& path) { @@ -40,11 +42,13 @@ void StoreTestFixture::SetUp() { cerr << __func__ << ": objectstore type " << type << " doesn't exist yet!" << std::endl; } ASSERT_TRUE(store); +#if defined(HAVE_LIBAIO) if (type == "bluestore") { BlueStore *s = static_cast(store.get()); // better test coverage! s->set_cache_shards(5); } +#endif ASSERT_EQ(0, store->mkfs()); ASSERT_EQ(0, store->mount()); }