]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test: use wrapper that respects RBD_FEATURES when creating rbd image
authorMykola Golub <mgolub@mirantis.com>
Tue, 19 Jul 2016 07:39:26 +0000 (10:39 +0300)
committerMykola Golub <mgolub@mirantis.com>
Tue, 19 Jul 2016 07:39:26 +0000 (10:39 +0300)
Fixes: http://tracker.ceph.com/issues/16717
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
src/test/librbd/test_librbd.cc

index 2b3594516f15e2e5c05b2d624474e12cfd4773d7..9343a28a65c40bfcc2a6795c78aecf2ea25e364e 100644 (file)
@@ -687,11 +687,11 @@ TEST_F(TestLibRBD, TestCreateLsDeletePP)
     int order = 0;
     std::string name = get_temp_image_name();
     std::string name2 = get_temp_image_name();
-    uint64_t size = 2 << 20;  
-    
+    uint64_t size = 2 << 20;
+
     ASSERT_EQ(0, create_image_pp(rbd, ioctx, name.c_str(), size, &order));
     ASSERT_EQ(1, test_ls_pp(rbd, ioctx, 1, name.c_str()));
-    ASSERT_EQ(0, rbd.create(ioctx, name2.c_str(), size, &order));
+    ASSERT_EQ(0, create_image_pp(rbd, ioctx, name2.c_str(), size, &order));
     ASSERT_EQ(2, test_ls_pp(rbd, ioctx, 2, name.c_str(), name2.c_str()));
     ASSERT_EQ(0, rbd.remove(ioctx, name.c_str()));
     ASSERT_EQ(1, test_ls_pp(rbd, ioctx, 1, name2.c_str()));