48 lines
2.0 KiB
Diff
48 lines
2.0 KiB
Diff
From 57911844644ca352154859050e59444aca4e4ca5 Mon Sep 17 00:00:00 2001
|
|
Message-Id: <57911844644ca352154859050e59444aca4e4ca5@dist-git>
|
|
From: Peter Krempa <pkrempa@redhat.com>
|
|
Date: Tue, 23 Jun 2020 12:23:42 +0200
|
|
Subject: [PATCH] qemublocktest: Add 'empty' case for blockcopy bitmap handling
|
|
test
|
|
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 264d7cf444633c0d2d20b30b612754943fede5a3)
|
|
https://bugzilla.redhat.com/show_bug.cgi?id=1804593
|
|
Message-Id: <f49b64f231bb06e6d65232aa9bedaf11a5ce4497.1592906423.git.pkrempa@redhat.com>
|
|
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
---
|
|
tests/qemublocktest.c | 3 +++
|
|
tests/qemublocktestdata/bitmapblockcopy/empty-deep-out.json | 0
|
|
tests/qemublocktestdata/bitmapblockcopy/empty-shallow-out.json | 0
|
|
3 files changed, 3 insertions(+)
|
|
create mode 100644 tests/qemublocktestdata/bitmapblockcopy/empty-deep-out.json
|
|
create mode 100644 tests/qemublocktestdata/bitmapblockcopy/empty-shallow-out.json
|
|
|
|
diff --git a/tests/qemublocktest.c b/tests/qemublocktest.c
|
|
index 5f1c68f6de..2009cad228 100644
|
|
--- a/tests/qemublocktest.c
|
|
+++ b/tests/qemublocktest.c
|
|
@@ -1407,6 +1407,9 @@ mymain(void)
|
|
ret = -1; \
|
|
} while (0)
|
|
|
|
+ TEST_BITMAP_BLOCKCOPY("empty-shallow", true, "empty");
|
|
+ TEST_BITMAP_BLOCKCOPY("empty-deep", false, "empty");
|
|
+
|
|
TEST_BITMAP_BLOCKCOPY("basic-shallow", true, "basic");
|
|
TEST_BITMAP_BLOCKCOPY("basic-deep", false, "basic");
|
|
|
|
diff --git a/tests/qemublocktestdata/bitmapblockcopy/empty-deep-out.json b/tests/qemublocktestdata/bitmapblockcopy/empty-deep-out.json
|
|
new file mode 100644
|
|
index 0000000000..e69de29bb2
|
|
diff --git a/tests/qemublocktestdata/bitmapblockcopy/empty-shallow-out.json b/tests/qemublocktestdata/bitmapblockcopy/empty-shallow-out.json
|
|
new file mode 100644
|
|
index 0000000000..e69de29bb2
|
|
--
|
|
2.27.0
|
|
|