conf: Fix the bug of disk->copy_on_read formating

The reason for it's not exposed for such long time is that the
enums for VirtioEventIdx and CopyOnReadType have same enum values
and Correspondingstrings. This fixes the bug and adds test.
This commit is contained in:
Osier Yang
2013-05-14 17:03:02 +08:00
parent d3842cb4e4
commit e3b40bec42
3 changed files with 13 additions and 6 deletions

View File

@@ -293,6 +293,8 @@ mymain(void)
DO_TEST("hostdev-scsi-virtio-scsi");
DO_TEST("hostdev-scsi-readonly");
DO_TEST("disk-copy_on_read");
virObjectUnref(driver.caps);
virObjectUnref(driver.xmlopt);