render / rpms / libvirt

Forked from rpms/libvirt 10 months ago
Clone
a41c76
From 57911844644ca352154859050e59444aca4e4ca5 Mon Sep 17 00:00:00 2001
a41c76
Message-Id: <57911844644ca352154859050e59444aca4e4ca5@dist-git>
a41c76
From: Peter Krempa <pkrempa@redhat.com>
a41c76
Date: Tue, 23 Jun 2020 12:23:42 +0200
a41c76
Subject: [PATCH] qemublocktest: Add 'empty' case for blockcopy bitmap handling
a41c76
 test
a41c76
MIME-Version: 1.0
a41c76
Content-Type: text/plain; charset=UTF-8
a41c76
Content-Transfer-Encoding: 8bit
a41c76
a41c76
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
a41c76
Reviewed-by: Eric Blake <eblake@redhat.com>
a41c76
(cherry picked from commit 264d7cf444633c0d2d20b30b612754943fede5a3)
a41c76
https://bugzilla.redhat.com/show_bug.cgi?id=1804593
a41c76
Message-Id: <f49b64f231bb06e6d65232aa9bedaf11a5ce4497.1592906423.git.pkrempa@redhat.com>
a41c76
Reviewed-by: Ján Tomko <jtomko@redhat.com>
a41c76
---
a41c76
 tests/qemublocktest.c                                          | 3 +++
a41c76
 tests/qemublocktestdata/bitmapblockcopy/empty-deep-out.json    | 0
a41c76
 tests/qemublocktestdata/bitmapblockcopy/empty-shallow-out.json | 0
a41c76
 3 files changed, 3 insertions(+)
a41c76
 create mode 100644 tests/qemublocktestdata/bitmapblockcopy/empty-deep-out.json
a41c76
 create mode 100644 tests/qemublocktestdata/bitmapblockcopy/empty-shallow-out.json
a41c76
a41c76
diff --git a/tests/qemublocktest.c b/tests/qemublocktest.c
a41c76
index 5f1c68f6de..2009cad228 100644
a41c76
--- a/tests/qemublocktest.c
a41c76
+++ b/tests/qemublocktest.c
a41c76
@@ -1407,6 +1407,9 @@ mymain(void)
a41c76
             ret = -1; \
a41c76
     } while (0)
a41c76
 
a41c76
+    TEST_BITMAP_BLOCKCOPY("empty-shallow", true, "empty");
a41c76
+    TEST_BITMAP_BLOCKCOPY("empty-deep", false, "empty");
a41c76
+
a41c76
     TEST_BITMAP_BLOCKCOPY("basic-shallow", true, "basic");
a41c76
     TEST_BITMAP_BLOCKCOPY("basic-deep", false, "basic");
a41c76
 
a41c76
diff --git a/tests/qemublocktestdata/bitmapblockcopy/empty-deep-out.json b/tests/qemublocktestdata/bitmapblockcopy/empty-deep-out.json
a41c76
new file mode 100644
a41c76
index 0000000000..e69de29bb2
a41c76
diff --git a/tests/qemublocktestdata/bitmapblockcopy/empty-shallow-out.json b/tests/qemublocktestdata/bitmapblockcopy/empty-shallow-out.json
a41c76
new file mode 100644
a41c76
index 0000000000..e69de29bb2
a41c76
-- 
a41c76
2.27.0
a41c76