diff options
author | zhengyin <zhengyin@cmss.chinamobile.com> | 2019-11-13 07:22:48 +0100 |
---|---|---|
committer | zhengyin <zhengyin@cmss.chinamobile.com> | 2019-11-19 09:29:34 +0100 |
commit | 5a5581c0dded7ea53d4c0f04478378cc3bb8e85d (patch) | |
tree | 5d86e074519515acb7cc34d80931cf6f7431dfe6 /src/test/librbd/journal | |
parent | Merge pull request #31685 from liewegas/fix-mgr-shutdown (diff) | |
download | ceph-5a5581c0dded7ea53d4c0f04478378cc3bb8e85d.tar.xz ceph-5a5581c0dded7ea53d4c0f04478378cc3bb8e85d.zip |
librbd: Modify related test cases
Signed-off-by: Zheng Yin <zhengyin@cmss.chinamobile.com>
Diffstat (limited to 'src/test/librbd/journal')
-rw-r--r-- | src/test/librbd/journal/test_Replay.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/librbd/journal/test_Replay.cc b/src/test/librbd/journal/test_Replay.cc index 76e0cdab7c6..f79d752a15a 100644 --- a/src/test/librbd/journal/test_Replay.cc +++ b/src/test/librbd/journal/test_Replay.cc @@ -14,6 +14,7 @@ #include "librbd/internal.h" #include "librbd/Journal.h" #include "librbd/Operations.h" +#include "librbd/api/Snapshot.h" #include "librbd/io/AioCompletion.h" #include "librbd/io/ImageDispatchSpec.h" #include "librbd/io/ImageRequest.h" @@ -374,7 +375,7 @@ TEST_F(TestJournalReplay, SnapProtect) { ASSERT_EQ(initial_entry + 2, current_entry); bool is_protected; - ASSERT_EQ(0, librbd::snap_is_protected(ictx, "snap", &is_protected)); + ASSERT_EQ(0, librbd::api::Snapshot<>::is_protected(ictx, "snap", &is_protected)); ASSERT_TRUE(is_protected); // verify lock ordering constraints @@ -427,7 +428,7 @@ TEST_F(TestJournalReplay, SnapUnprotect) { ASSERT_EQ(initial_entry + 2, current_entry); bool is_protected; - ASSERT_EQ(0, librbd::snap_is_protected(ictx, "snap", &is_protected)); + ASSERT_EQ(0, librbd::api::Snapshot<>::is_protected(ictx, "snap", &is_protected)); ASSERT_FALSE(is_protected); // verify lock ordering constraints |