From 6566a777237836ce9c499928b2b5f0b8afcd87d3 Mon Sep 17 00:00:00 2001 From: Mykola Golub Date: Tue, 27 Feb 2018 16:44:26 +0200 Subject: [PATCH] test/librbd: add empty directory rbd_list test Signed-off-by: Mykola Golub --- src/test/librbd/test_librbd.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); -- 2.39.5