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: use wrapper that respects RBD_FEATURES when creating rbd image #10348

Merged
merged 1 commit into from Jul 24, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/test/librbd/test_librbd.cc
Expand Up @@ -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()));
Expand Down