[RFC PATCH 12/41] qemublocktest: Add 'empty' case for checkpoint bitmap handling

Peter Krempa pkrempa at redhat.com
Tue Jun 9 15:00:19 UTC 2020


Signed-off-by: Peter Krempa <pkrempa at 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 2ddfab72eb..d66e169fd8 100644
--- a/tests/qemublocktest.c
+++ b/tests/qemublocktest.c
@@ -1430,6 +1430,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.26.2




More information about the libvir-list mailing list