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

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