From: Mykola Golub Date: Sat, 21 Apr 2018 19:42:01 +0000 (+0300) Subject: test/librbd: RBD_FEATURES parsed wrongly for old format in deep copy tests X-Git-Tag: v13.1.0~69^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=45b00a9a1bbe86f74eb1c11e93390d558fe57a6e;p=ceph.git test/librbd: RBD_FEATURES parsed wrongly for old format in deep copy tests It means that previously we mostly tested deep copy from old format to new format image ignoring features. Signed-off-by: Mykola Golub --- diff --git a/src/test/librbd/test_DeepCopy.cc b/src/test/librbd/test_DeepCopy.cc index 05fdd7e1e6a0..2585d165e335 100644 --- a/src/test/librbd/test_DeepCopy.cc +++ b/src/test/librbd/test_DeepCopy.cc @@ -20,7 +20,7 @@ struct TestDeepCopy : public TestFixture { int order = 22; uint64_t size = (1 << order) * 20; uint64_t features = 0; - bool old_format = get_features(&features); + bool old_format = !get_features(&features); EXPECT_EQ(0, create_image_full_pp(m_rbd, m_ioctx, image_name, size, features, old_format, &order)); ASSERT_EQ(0, open_image(image_name, &m_src_ictx));