diff --git a/tests/storagevolxml2argvdata/qcow2-zerocapacity.argv b/tests/storagevolxml2argvdata/qcow2-zerocapacity.argv new file mode 100644 index 0000000000..d83b08b342 --- /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 ed002ce352..393123b60b 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 0000000000..1d1e6deac0 --- /dev/null +++ b/tests/storagevolxml2xmlin/vol-qcow2-zerocapacity.xml @@ -0,0 +1,7 @@ + + OtherDemo.img + + + + 0 +