render / rpms / libvirt

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