libvirt/SOURCES/libvirt-qemublocktest-Add-empty-case-for-checkpoint-bitmap-handling.patch
2021-09-10 11:57:33 +00:00

47 lines
1.7 KiB
Diff

From 04bc9dbf9940f6976c5320ce628f97197625e4d7 Mon Sep 17 00:00:00 2001
Message-Id: <04bc9dbf9940f6976c5320ce628f97197625e4d7@dist-git>
From: Peter Krempa <pkrempa@redhat.com>
Date: Tue, 23 Jun 2020 12:23:43 +0200
Subject: [PATCH] qemublocktest: Add 'empty' case for checkpoint bitmap
handling
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
(cherry picked from commit cc1a33b59940f9e2a0856ac49dd9b8a185df8a01)
https://bugzilla.redhat.com/show_bug.cgi?id=1804593
Message-Id: <c29f12f53fef11d76aa14ece56ac5f43f74cb21d.1592906423.git.pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
---
tests/qemublocktest.c | 2 ++
tests/qemublocktestdata/bitmapblockcommit/empty | 2 ++
2 files changed, 4 insertions(+)
create mode 100644 tests/qemublocktestdata/bitmapblockcommit/empty
diff --git a/tests/qemublocktest.c b/tests/qemublocktest.c
index 2009cad228..36e3378f5b 100644
--- a/tests/qemublocktest.c
+++ b/tests/qemublocktest.c
@@ -1429,6 +1429,8 @@ mymain(void)
ret = -1; \
} while (0)
+ TEST_BITMAP_BLOCKCOMMIT("empty", 1, 2, "empty");
+
TEST_BITMAP_BLOCKCOMMIT("basic-1-2", 1, 2, "basic");
TEST_BITMAP_BLOCKCOMMIT("basic-1-3", 1, 3, "basic");
TEST_BITMAP_BLOCKCOMMIT("basic-2-3", 2, 3, "basic");
diff --git a/tests/qemublocktestdata/bitmapblockcommit/empty b/tests/qemublocktestdata/bitmapblockcommit/empty
new file mode 100644
index 0000000000..bfc58f994e
--- /dev/null
+++ b/tests/qemublocktestdata/bitmapblockcommit/empty
@@ -0,0 +1,2 @@
+pre job bitmap disable:
+merge bitmpas:
--
2.27.0