From: Mykola Golub Date: Tue, 27 Feb 2018 14:44:26 +0000 (+0200) Subject: test/librbd: add empty directory rbd_list test X-Git-Tag: wip-pdonnell-testing-20180317.202121~163^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=6566a777237836ce9c499928b2b5f0b8afcd87d3;p=ceph-ci.git test/librbd: add empty directory rbd_list test Signed-off-by: Mykola Golub --- diff --git a/src/test/librbd/test_librbd.cc b/src/test/librbd/test_librbd.cc index addf74563cf..8d08a771ae8 100644 --- a/src/test/librbd/test_librbd.cc +++ b/src/test/librbd/test_librbd.cc @@ -834,7 +834,8 @@ TEST_F(TestLibRBD, TestCreateLsDelete) std::string name = get_temp_image_name(); std::string name2 = get_temp_image_name(); uint64_t size = 2 << 20; - + + ASSERT_EQ(0, test_ls(ioctx, 0)); ASSERT_EQ(0, create_image(ioctx, name.c_str(), size, &order)); ASSERT_EQ(1, test_ls(ioctx, 1, name.c_str())); ASSERT_EQ(0, create_image(ioctx, name2.c_str(), size, &order));