Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test/ceph-test-objectstore: Don't always include BlueStore code #13516

Merged
merged 1 commit into from Feb 23, 2017

Conversation

wjwithagen
Copy link
Contributor

  • FreeBSD does not do Bluestore, so TESTS added using
    BlueStore need to be conditional on HAVE_LIBAIO

Signed-off-by: Willem Jan Withagen wjw@digiware.nl

@@ -5901,7 +5909,9 @@ TEST_P(StoreTest, garbageCollection) {
ASSERT_EQ(r, 0);
ASSERT_EQ(statfs.compressed_allocated, 0x20000);
const PerfCounters* counters = store->get_perf_counters();
#if defined(HAVE_LIBAIO)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this test is only valid with bluestore, could just quote it using #ifdef HAVE_LIBAIO

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tchaikov
I'm not following you??
What's the diff between #ifdef`` and #if defined(...)` you are trying to make?

Copy link
Contributor

@tchaikov tchaikov Feb 19, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wjwithagen no, i mean the whole test of StoreTest.garbageCollection is bluestore specific, you can guard it like

#ifdef HAVE_LIBAIO
TEST_P(StoreTest, garbageCollection) {
 // ...
}

the #ifdef versus #if defined() is but person preference. i am good either way.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tchaikov
Ah right, would make a lot less mess in the code.
Will fix.

@tchaikov tchaikov added cleanup and removed bug-fix labels Feb 18, 2017
 - FreBSD does not do Bluestore, so TESTS added using
   BlueStore need to be conditional on HAVE_LIBAIO

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
@liewegas liewegas merged commit 7c44095 into ceph:master Feb 23, 2017
@wjwithagen wjwithagen deleted the wip-wjw-test-onjectstore branch February 23, 2017 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants