From c42c54d0ec643b272aff225134dd0eceae946af0 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Mon, 19 Feb 2018 10:25:15 -0500 Subject: [PATCH] test/librbd: utilize unique pool for cache tier testing Fixes: http://tracker.ceph.com/issues/11502 Signed-off-by: Jason Dillaman --- src/test/librbd/test_librbd.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/test/librbd/test_librbd.cc b/src/test/librbd/test_librbd.cc index 7d1c88b0efb9e..574bf2724f538 100644 --- a/src/test/librbd/test_librbd.cc +++ b/src/test/librbd/test_librbd.cc @@ -3368,9 +3368,10 @@ TEST_F(TestLibRBD, ListChildrenTiered) REQUIRE_FEATURE(RBD_FEATURE_LAYERING); librbd::RBD rbd; - string pool_name1 = m_pool_name; + string pool_name1 = create_pool(true); string pool_name2 = create_pool(true); string pool_name3 = create_pool(true); + ASSERT_NE("", pool_name1); ASSERT_NE("", pool_name2); ASSERT_NE("", pool_name3); @@ -3494,7 +3495,7 @@ TEST_F(TestLibRBD, ListChildrenTiered) child_id2, pool_name1.c_str(), child_name2.c_str(), false, child_id3, pool_name2.c_str(), child_name3.c_str(), true, child_id4, pool_name2.c_str(), child_name4.c_str(), false); - + ASSERT_EQ(0, rbd.trash_restore(ioctx3, child_id3, "")); test_list_children(parent, 4, pool_name2.c_str(), child_name1.c_str(), pool_name1.c_str(), child_name2.c_str(), -- 2.39.5