[RFC PATCH 11/41] qemublocktest: Add 'empty' case for blockcopy bitmap handling test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 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 1821c227d5..2ddfab72eb 100644
--- a/tests/qemublocktest.c
+++ b/tests/qemublocktest.c
@@ -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
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.26.2




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux