diff --git a/tests/storagevolxml2argvdata/qcow2-zerocapacity.argv b/tests/storagevolxml2argvdata/qcow2-zerocapacity.argv new file mode 100644 index 0000000000000000000000000000000000000000..d83b08b34261e9f6fe156437ab249146c2b618eb --- /dev/null +++ b/tests/storagevolxml2argvdata/qcow2-zerocapacity.argv @@ -0,0 +1 @@ +qemu-img create -f qcow2 -o compat=0.10 0K diff --git a/tests/storagevolxml2argvtest.c b/tests/storagevolxml2argvtest.c index ed002ce352819d2c01ad3fd487ebda0282f857c6..393123b60b1135e5001ce852202c0deda4d3a8dd 100644 --- a/tests/storagevolxml2argvtest.c +++ b/tests/storagevolxml2argvtest.c @@ -284,6 +284,9 @@ mymain(void) DO_TEST("pool-dir", "vol-qcow2-nocapacity", "pool-dir", "vol-file", "qcow2-nocapacity-convert-prealloc", flags, FMT_OPTIONS); + DO_TEST("pool-dir", "vol-qcow2-zerocapacity", + NULL, NULL, + "qcow2-zerocapacity", 0, FMT_COMPAT); DO_TEST_FULL(false, VIR_VOL_XML_PARSE_OPT_CAPACITY, "pool-dir", "vol-qcow2-nocapacity-backing", NULL, NULL, "qcow2-nocapacity", 0, FMT_OPTIONS); diff --git a/tests/storagevolxml2xmlin/vol-qcow2-zerocapacity.xml b/tests/storagevolxml2xmlin/vol-qcow2-zerocapacity.xml new file mode 100644 index 0000000000000000000000000000000000000000..1d1e6deac0caf85b9f1701aa7dd6c9e5a228e83d --- /dev/null +++ b/tests/storagevolxml2xmlin/vol-qcow2-zerocapacity.xml @@ -0,0 +1,7 @@ + + OtherDemo.img + + + + 0 +