]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemublocktest: Add 'empty' case for blockcopy bitmap handling test
authorPeter Krempa <pkrempa@redhat.com>
Thu, 28 May 2020 14:33:06 +0000 (16:33 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 22 Jun 2020 14:04:29 +0000 (16:04 +0200)
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
tests/qemublocktest.c
tests/qemublocktestdata/bitmapblockcopy/empty-deep-out.json [new file with mode: 0644]
tests/qemublocktestdata/bitmapblockcopy/empty-shallow-out.json [new file with mode: 0644]

index 1821c227d5ad0bbc9d2a7f03388a35cf7bc6f8b4..2ddfab72eb020768d2b83e1b0c6a5da044fb0662 100644 (file)
@@ -1408,6 +1408,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 (file)
index 0000000..e69de29
diff --git a/tests/qemublocktestdata/bitmapblockcopy/empty-shallow-out.json b/tests/qemublocktestdata/bitmapblockcopy/empty-shallow-out.json
new file mode 100644 (file)
index 0000000..e69de29