Blame SOURCES/libvirt-qemublocktest-Rename-TEST_CHECKPOINT_DELETE_MERGE-to-TEST_CHECKPOINT_DELETE.patch

fbe740
From a97672d9aa9be91ddb2fee0e592e0e137ecca20f Mon Sep 17 00:00:00 2001
fbe740
Message-Id: <a97672d9aa9be91ddb2fee0e592e0e137ecca20f@dist-git>
fbe740
From: Peter Krempa <pkrempa@redhat.com>
fbe740
Date: Tue, 23 Jun 2020 12:23:54 +0200
fbe740
Subject: [PATCH] qemublocktest: Rename TEST_CHECKPOINT_DELETE_MERGE to
fbe740
 TEST_CHECKPOINT_DELETE
fbe740
MIME-Version: 1.0
fbe740
Content-Type: text/plain; charset=UTF-8
fbe740
Content-Transfer-Encoding: 8bit
fbe740
fbe740
Also rename the helper struct and function.
fbe740
fbe740
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
fbe740
Reviewed-by: Eric Blake <eblake@redhat.com>
fbe740
(cherry picked from commit 520d139b9c3bbf6cc6453044fa6304e1429b7f11)
fbe740
https://bugzilla.redhat.com/show_bug.cgi?id=1804593
fbe740
Message-Id: <cd907a614df510e759d085739ff0523a1ae7b7cc.1592906423.git.pkrempa@redhat.com>
fbe740
Reviewed-by: Ján Tomko <jtomko@redhat.com>
fbe740
---
fbe740
 tests/qemublocktest.c | 14 +++++++-------
fbe740
 1 file changed, 7 insertions(+), 7 deletions(-)
fbe740
fbe740
diff --git a/tests/qemublocktest.c b/tests/qemublocktest.c
fbe740
index 201e5df6b4..0ec964c2c6 100644
fbe740
--- a/tests/qemublocktest.c
fbe740
+++ b/tests/qemublocktest.c
fbe740
@@ -826,7 +826,7 @@ testQemuBackupIncrementalBitmapCalculate(const void *opaque)
fbe740
 
fbe740
 static const char *checkpointDeletePrefix = "qemublocktestdata/checkpointdelete/";
fbe740
 
fbe740
-struct testQemuCheckpointDeleteMergeData {
fbe740
+struct testQemuCheckpointDeleteData {
fbe740
     const char *name;
fbe740
     virStorageSourcePtr chain;
fbe740
     const char *deletebitmap;
fbe740
@@ -835,9 +835,9 @@ struct testQemuCheckpointDeleteMergeData {
fbe740
 
fbe740
 
fbe740
 static int
fbe740
-testQemuCheckpointDeleteMerge(const void *opaque)
fbe740
+testQemuCheckpointDelete(const void *opaque)
fbe740
 {
fbe740
-    const struct testQemuCheckpointDeleteMergeData *data = opaque;
fbe740
+    const struct testQemuCheckpointDeleteData *data = opaque;
fbe740
     g_autofree char *actual = NULL;
fbe740
     g_autofree char *expectpath = NULL;
fbe740
     g_autoptr(virJSONValue) actions = NULL;
fbe740
@@ -1037,7 +1037,7 @@ mymain(void)
fbe740
     struct testJSONtoJSONData jsontojsondata;
fbe740
     struct testQemuImageCreateData imagecreatedata;
fbe740
     struct testQemuBackupIncrementalBitmapCalculateData backupbitmapcalcdata;
fbe740
-    struct testQemuCheckpointDeleteMergeData checkpointdeletedata;
fbe740
+    struct testQemuCheckpointDeleteData checkpointdeletedata;
fbe740
     struct testQemuBlockBitmapValidateData blockbitmapvalidatedata;
fbe740
     struct testQemuBlockBitmapBlockcopyData blockbitmapblockcopydata;
fbe740
     struct testQemuBlockBitmapBlockcommitData blockbitmapblockcommitdata;
fbe740
@@ -1316,18 +1316,18 @@ mymain(void)
fbe740
 
fbe740
     TEST_BACKUP_BITMAP_CALCULATE("empty", bitmapSourceChain, "a", "empty");
fbe740
 
fbe740
-#define TEST_CHECKPOINT_DELETE_MERGE(testname, delbmp, named) \
fbe740
+#define TEST_CHECKPOINT_DELETE(testname, delbmp, named) \
fbe740
     do { \
fbe740
         checkpointdeletedata.name = testname; \
fbe740
         checkpointdeletedata.chain = bitmapSourceChain; \
fbe740
         checkpointdeletedata.deletebitmap = delbmp; \
fbe740
         checkpointdeletedata.nodedatafile = named; \
fbe740
         if (virTestRun("checkpoint delete " testname, \
fbe740
-                       testQemuCheckpointDeleteMerge, &checkpointdeletedata) < 0) \
fbe740
+                       testQemuCheckpointDelete, &checkpointdeletedata) < 0) \
fbe740
         ret = -1; \
fbe740
     } while (0)
fbe740
 
fbe740
-    TEST_CHECKPOINT_DELETE_MERGE("empty", "a", "empty");
fbe740
+    TEST_CHECKPOINT_DELETE("empty", "a", "empty");
fbe740
 
fbe740
 #define TEST_BITMAP_VALIDATE(testname, bitmap, rc) \
fbe740
     do { \
fbe740
-- 
fbe740
2.27.0
fbe740