When an error is expected, the error message will be checked.
This is expressed by creating an additional ".err" file containing
the expected error message.
It is added in order to make sure the expected errors
are not masked by other errors during test execution while
leveraging the existing framework.
In order to keep it simple, an input file cannot be reused
anymore to cover several expected error cases configured
in the test code. An input file can still be reused by creating
a test case specific symlink.
For consistency, the mock needs to report an error now, too,
as every failure must have an error; otherwise a test case will
fail.
Require LC_ALL=C explicitly to make sure error messages are not
localized for testing.
Signed-off-by: Sebastian Mitterle <smitterl@redhat.com>
Suggested-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
--- /dev/null
+XML error: Attempted double use of PCI Address 0000:00:01.1
--- /dev/null
+XML error: The PCI controller with index='0' must be model='pci-root' for this machine type, but model='pcie-root' was found instead
--- /dev/null
+unsupported configuration: ACPI requires UEFI on this architecture
--- /dev/null
+unsupported configuration: SVE disabled, but SVE vector lengths provided
--- /dev/null
+internal error: CPU features not supported by hypervisor for aarch64 architecture
--- /dev/null
+unsupported configuration: unknown CPU feature: vmx
--- /dev/null
+unsupported configuration: gic-version option is not available with this QEMU binary
--- /dev/null
+XML error: malformed gic version: none
--- /dev/null
+unsupported configuration: The 'gic' feature is not supported for architecture 'ppc64' or machine type 'pseries'
--- /dev/null
+unsupported configuration: The 'gic' feature is not supported for architecture 'aarch64' or machine type 'versatilepb'
--- /dev/null
+unsupported configuration: gic-version option is not available with this QEMU binary
--- /dev/null
+unsupported configuration: QEMU binary does not support CPU host-passthrough for armv7l on aarch64 host
--- /dev/null
+unsupported configuration: per-device boot elements cannot be used together with os/boot elements
--- /dev/null
+unsupported configuration: invalid value for boot menu timeout, must be in range [0,65535]
--- /dev/null
+unsupported configuration: splash timeout is not supported by this QEMU binary
--- /dev/null
+internal error: chardev reconnect is possible only for connect mode
--- /dev/null
+invalid argument: chardev reconnect source timeout cannot be '0'
--- /dev/null
+unsupported configuration: CPU cache mode 'emulate' can only be used with level='3'
--- /dev/null
+unsupported configuration: unsupported CPU cache level for mode 'passthrough'
--- /dev/null
+unsupported configuration: CPU cache mode 'passthrough' can only be used with 'host-passthrough' CPUs
--- /dev/null
+unsupported configuration: CPU model core2duo is not supported by hypervisor
--- /dev/null
+unsupported configuration: vCPUs count must be a multiple of the vCPU hotplug granularity (4)
--- /dev/null
+unsupported configuration: CPU model Westmere is not supported by hypervisor
--- /dev/null
+unsupported configuration: disjoint NUMA cpu ranges are not supported with this QEMU
--- /dev/null
+unsupported configuration: Shared memory mapping is not supported with this QEMU
--- /dev/null
+cpu-numa-memshared.xml
\ No newline at end of file
--- /dev/null
+unsupported configuration: this qemu doesn't support the memory-backend-file object
--- /dev/null
+XML error: Exactly one 'cell' element per guest NUMA cell allowed, non-contiguous ranges or ranges not starting from 0 are not allowed
--- /dev/null
+unsupported configuration: CPU mode 'host-passthrough' for x86_64 qemu domain on x86_64 host is not supported by hypervisor
--- /dev/null
+internal error: CPU features not supported by hypervisor for s390x architecture
--- /dev/null
+unsupported configuration: Cannot find 'iothread' : 2
--- /dev/null
+'vcpusched' attributes 'vcpus' must not overlap
--- /dev/null
+unsupported configuration: domain configuration does not support 'video model' value 'default'
--- /dev/null
+unsupported configuration: Found duplicate drive address for disk with target name 'sda' controller='0' bus='0' target='0' unit='0'
--- /dev/null
+unsupported configuration: invalid disk target 'vdb1', partitions can't appear in disk targets
--- /dev/null
+unsupported configuration: disk device='lun' is only valid for block type disk source
--- /dev/null
+internal error: unexpected address type for fdc disk
--- /dev/null
+unsupported configuration: PowerPC pseries machines do not support floppy device
--- /dev/null
+unsupported configuration: 'cow' storage format is not supported
--- /dev/null
+unsupported configuration: 'directory' storage format is not directly supported by QEMU, use 'dir' disk type instead
--- /dev/null
+unsupported configuration: storage format 'iso' is not directly supported by QEMU, use 'raw' instead
--- /dev/null
+unsupported configuration: using disk target name 'sda' conflicts with SCSI host device address controller='0' bus='0' target='0' unit='0
--- /dev/null
+internal error: unexpected address type for ide disk
--- /dev/null
+unsupported configuration: unknown secret type '<null>'
--- /dev/null
+unsupported configuration: invalid secret type 'ceph'
--- /dev/null
+unsupported configuration: ':' not allowed in RBD source volume name 'imagename:rbd_cache=1:rbd_cache_size=67108864:rbd_cache_max_dirty=0'
--- /dev/null
+unsupported configuration: an <auth> definition already found for disk source
--- /dev/null
+XML error: target 'sda' duplicated for disk sources '/tmp/idedisk.img' and '/tmp/usbdisk.img'
--- /dev/null
+unsupported configuration: Invalid address type 'pci' for the disk 'sda' with the bus type 'sata'
--- /dev/null
+unsupported configuration: Only scsi disk supports vendor and product
--- /dev/null
+internal error: unexpected address type for scsi disk
--- /dev/null
+unsupported configuration: shared access for disk 'hda' requires use of supported storage format
--- /dev/null
+unsupported configuration: This QEMU doesn't support '-device usb-storage'
--- /dev/null
+internal error: unexpected address type for usb disk
--- /dev/null
+unsupported configuration: graphics type 'egl-headless' is only supported with one of: 'vnc', 'spice' graphics types
--- /dev/null
+unsupported configuration: multiple OpenGL displays are not supported by QEMU
--- /dev/null
+unsupported configuration: graphics device is needed for attribute value 'display=on' in <hostdev>
--- /dev/null
+XML error: Unsupported address type 'drive' with mediated device model 'vfio-pci'
--- /dev/null
+unsupported configuration: Missing 'uuid' attribute for element <address>
--- /dev/null
+unsupported configuration: booting from assigned devices is not supported by vhost SCSI devices
--- /dev/null
+unsupported configuration: booting from assigned devices is not supported by mediated devices of model vfio-ap
--- /dev/null
+XML error: The CCW devno 'fe.0.0001' is in use already
--- /dev/null
+XML error: Unsupported address type 'pci' with mediated device model 'vfio-ccw'
--- /dev/null
+unsupported configuration: VFIO CCW device assignment is not supported by this version of QEMU
--- /dev/null
+XML error: No PCI buses available
--- /dev/null
+internal error: zPCI uid 11064 is already reserved
--- /dev/null
+XML error: Invalid PCI address uid='0x0000', must be > 0x0000 and <= 0xffff
--- /dev/null
+XML error: Invalid PCI address uid='0x0000', must be > 0x0000 and <= 0xffff
--- /dev/null
+XML error: Invalid PCI address uid='0x0000', must be > 0x0000 and <= 0xffff
--- /dev/null
+unsupported configuration: This QEMU binary doesn't support zPCI
--- /dev/null
+unsupported configuration: This QEMU binary doesn't support zPCI
--- /dev/null
+unsupported configuration: SCSI host address controller='0' bus='0' target='0' unit='0' in use by another SCSI host device
--- /dev/null
+unsupported configuration: huge pages per NUMA node are not supported with this QEMU
--- /dev/null
+unsupported configuration: Invalid 'memAccess' attribute value 'invalid'
--- /dev/null
+unsupported configuration: memory access mode 'shared' not supported without guest numa node
--- /dev/null
+hugepages: node 1 not found
--- /dev/null
+hugepages: node 4 not found
--- /dev/null
+unsupported configuration: IOMMU device: 'intel' is only supported with Q35 machines
--- /dev/null
+unsupported configuration: IOThreads not supported for this QEMU
--- /dev/null
+unsupported configuration: supplying <cipher> for domain disk definition is unnecessary
--- /dev/null
+unsupported configuration: an <encryption> definition already found for disk source
--- /dev/null
+unsupported configuration: LUKS encrypted QCOW2 images are not supported by this QEMU
--- /dev/null
+unsupported configuration: Serial device with target type 'system-serial' and target model 'pl011' not compatible with guest architecture or machine type
--- /dev/null
+unsupported configuration: aes-key-wrap is not available with this QEMU binary
--- /dev/null
+unsupported configuration: aes-key-wrap is not available with this QEMU binary
--- /dev/null
+unsupported configuration: aes-key-wrap is not available with this QEMU binary
--- /dev/null
+unsupported configuration: aes-key-wrap is not available with this QEMU binary
--- /dev/null
+unsupported configuration: dea-key-wrap is not available with this QEMU binary
--- /dev/null
+unsupported configuration: dea-key-wrap is not available with this QEMU binary
--- /dev/null
+unsupported configuration: dea-key-wrap is not available with this QEMU binary
--- /dev/null
+unsupported configuration: dea-key-wrap is not available with this QEMU binary
--- /dev/null
+internal error: invalid loadparm char '?', expecting chars in set of [a-zA-Z0-9.] and blank spaces
--- /dev/null
+internal error: loadparm 'LOADPARM1' exceeds 8 characters
--- /dev/null
+unsupported configuration: memory size of NUMA node '0' overflowed after alignment
--- /dev/null
+unsupported configuration: At least one numa node has to be configured when enabling memory hotplug
--- /dev/null
+XML error: Memory size must be specified via <memory> or in the <numa> configuration
--- /dev/null
+unsupported configuration: setting ACPI S4 not supported
--- /dev/null
+unsupported configuration: Emulator '/usr/bin/qemu-system-i386' does not support arch 'alpha'
--- /dev/null
+unsupported configuration: interface 00:11:22:33:44:55 - custom tap device path is not supported for network interfaces of type hostdev
--- /dev/null
+unsupported configuration: interface 52:54:00:ee:96:6b - custom tap device path is not supported for network interfaces of type vhostuser
--- /dev/null
+unsupported configuration: interface 52:54:00:ee:96:6e - multiqueue is not supported for network interfaces of type vhost-user with this QEMU binary
--- /dev/null
+unsupported configuration: rx_queue_size has to be a power of two
--- /dev/null
+unsupported configuration: virtio-net failover (teaming) is not supported with this QEMU binary
--- /dev/null
+unsupported configuration: nodeset for NUMA memory tuning must be set if 'placement' is 'static'
--- /dev/null
+unsupported configuration: Per-node memory binding is not supported with this QEMU
--- /dev/null
+XML error: Element 'memnode' is invalid without any guest NUMA cells
--- /dev/null
+unsupported configuration: Per-node memory binding is not supported with this QEMU
--- /dev/null
+unsupported configuration: Per-node binding is not compatible with automatic NUMA placement.
--- /dev/null
+unsupported configuration: Invalid value of 'nodeset': 0,^0
--- /dev/null
+internal error: Mock: no numa node set is available at bit 8
--- /dev/null
+XML error: Multiple 'pci' controllers with index '1'
--- /dev/null
+internal error: Cannot parse controller index -1
--- /dev/null
+XML error: Invalid PCI address bus='0x100', must be <= 0xFF
--- /dev/null
+XML error: Invalid PCI address bus='0x100', must be <= 0xFF
--- /dev/null
+XML error: The device at PCI address 0000:01:01.0 cannot be plugged into the PCI controller with index='1'. It requires a controller that accepts a pci-expander-bus.
--- /dev/null
+XML error: The PCI controller with index='0' must be model='pcie-root' for this machine type, but model='pci-root' was found instead
--- /dev/null
+XML error: pci-expander-bus with index 1 is configured for a NUMA node (1) not present in the domain's <cpu><numa> array (0)
--- /dev/null
+XML error: Invalid PCI address function=0x8, must be <= 7
--- /dev/null
+XML error: pci-root and pcie-root controllers should not have an address
--- /dev/null
+XML error: pci-root and pcie-root controllers should have index 0
--- /dev/null
+XML error: Invalid PCI address slot='0x20', must be <= 0x1F
--- /dev/null
+XML error: The device at PCI address 0000:01:00.0 cannot be plugged into the PCI controller with index='1'. It requires a controller that accepts a pcie-expander-bus.
--- /dev/null
+unsupported configuration: pcie-expander-bus controllers are only supported on q35-based machinetypes
--- /dev/null
+internal error: a PCI slot is needed to connect a PCI controller model='pcie-root-port', but none is available, and it cannot be automatically added
--- /dev/null
+unsupported configuration: 64-bit PCI hole size setting is not supported with this QEMU binary
--- /dev/null
+unsupported configuration: only a single TPM non-proxy device is supported
--- /dev/null
+unsupported configuration: only a single TPM Proxy device is supported
--- /dev/null
+the CPU is incompatible with host CPU
--- /dev/null
+XML error: The PCI controller with index=0 can't be associated with a NUMA node
--- /dev/null
+unsupported configuration: ccf-assist configuration is not supported by this QEMU binary
--- /dev/null
+pseries-features.xml
\ No newline at end of file
--- /dev/null
+unsupported configuration: cfpc configuration is not supported by this QEMU binary
--- /dev/null
+pseries-features.xml
\ No newline at end of file
--- /dev/null
+unsupported configuration: Configuring the page size for HPT guests is not supported by this QEMU binary
--- /dev/null
+pseries-features.xml
\ No newline at end of file
--- /dev/null
+unsupported configuration: HTM configuration is not supported by this QEMU binary
--- /dev/null
+pseries-features.xml
\ No newline at end of file
--- /dev/null
+unsupported configuration: HTP resizing is not supported by this QEMU binary
--- /dev/null
+pseries-features.xml
\ No newline at end of file
--- /dev/null
+unsupported configuration: ibs configuration is not supported by this QEMU binary
--- /dev/null
+pseries-features.xml
\ No newline at end of file
--- /dev/null
+unsupported configuration: The 'hpt' feature is not supported for architecture 'x86_64' or machine type 'pc'
--- /dev/null
+unsupported configuration: Nested HV configuration is not supported by this QEMU binary
--- /dev/null
+pseries-features.xml
\ No newline at end of file
--- /dev/null
+unsupported configuration: sbbc configuration is not supported by this QEMU binary
--- /dev/null
+pseries-features.xml
\ No newline at end of file
--- /dev/null
+unsupported configuration: The 'spapr-pci-host-bridge' device is not supported by this QEMU binary
--- /dev/null
+unsupported configuration: 'spapr-vty' is not supported in this QEMU binary
--- /dev/null
+unsupported configuration: The 'spapr-pci-host-bridge' device is not supported by this QEMU binary
--- /dev/null
+unsupported configuration: The 'spapr-pci-host-bridge' device is not supported by this QEMU binary
--- /dev/null
+unsupported configuration: The 'spapr-pci-host-bridge' device is not supported by this QEMU binary
--- /dev/null
+unsupported configuration: Serial device with target type 'spapr-vio-serial' and target model 'spapr-vty' not compatible with guest architecture or machine type
--- /dev/null
+unsupported configuration: The 'spapr-pci-host-bridge' device is not supported by this QEMU binary
--- /dev/null
+XML error: spapr-vio address 0x4000 already in use
--- /dev/null
+XML error: Multiple 'pci' controllers with index '2'
--- /dev/null
+XML error: The device at PCI address 0000:01:00.0 cannot be plugged into the PCI controller with index='1'. It requires a controller that accepts a dmi-to-pci-bridge.
--- /dev/null
+unsupported configuration: UEFI requires ACPI on this architecture
--- /dev/null
+XML error: The PCI controller with index='0' must be model='pcie-root' for this machine type, but model='pci-root' was found instead
--- /dev/null
+unsupported configuration: reboot timeout is not supported by this QEMU binary
--- /dev/null
+unsupported configuration: parallel ports are not supported
--- /dev/null
+unsupported configuration: setting the panic device address is not supported for model 's390'
--- /dev/null
+XML error: missing security model when using multiple labels
--- /dev/null
+seclabel for model selinux is already provided
--- /dev/null
+internal error: Missing source path attribute for char device
--- /dev/null
+unsupported configuration: only 'pci' addresses are supported for the shared memory device
--- /dev/null
+XML error: shmem size must be a power of two
--- /dev/null
+XML error: msi option is only supported with a server
--- /dev/null
+XML error: shmem size must be at least 1 MiB (1024 KiB)
--- /dev/null
+unsupported configuration: ivshmem device is not supported with this QEMU binary
--- /dev/null
+Invalid BIOS 'date' format
--- /dev/null
+UUID mismatch between <uuid> and <sysinfo>
--- /dev/null
+XML error: missing TPM device backend
--- /dev/null
+unsupported configuration: Setting TSEG size is not supported with this QEMU binary
--- /dev/null
+unsupported configuration: SMM TSEG is only supported with q35 machine type
--- /dev/null
+unsupported configuration: SMM TSEG size must be divisible by 1 MiB
--- /dev/null
+XML error: USB bus 1 requested but no controller with that index is present
--- /dev/null
+unsupported configuration: no model provided for USB controller
--- /dev/null
+unsupported configuration: nec-usb-xhci not supported in this QEMU binary
--- /dev/null
+unsupported configuration: 'qemu-xhci' controller only supports up to '15' ports
--- /dev/null
+unsupported configuration: qemu-xhci not supported in this QEMU binary
--- /dev/null
+unsupported configuration: 'nec-xhci' controller only supports up to '15' ports
--- /dev/null
+XML error: Duplicate USB address bus 0 port 1
--- /dev/null
+XML error: there is no hub at port 1 in USB address bus: 0 port: 1.2.3
--- /dev/null
+No master USB controller specified
--- /dev/null
+unsupported configuration: Can't add USB hub: USB is disabled for this domain
--- /dev/null
+Can't add another USB controller: USB is disabled for this domain
--- /dev/null
+unsupported configuration: Can't add USB input device. USB bus is disabled
--- /dev/null
+XML error: requested USB port 1.9 not present on USB bus 0
--- /dev/null
+internal error: Cannot parse <address> 'port' attribute
--- /dev/null
+unsupported configuration: virtiofs does not yet support read-only mode
--- /dev/null
+'queues' attribute must be positive number: -5
--- /dev/null
+unsupported configuration: domain configuration does not support 'video model' value 'qxl'
--- /dev/null
+unsupported configuration: 'address' is not supported for 'ramfb' video devices
--- /dev/null
+unsupported configuration: the ats setting is not supported with this QEMU binary
--- /dev/null
+unsupported configuration: the iommu setting is not supported with this QEMU binary
--- /dev/null
+unsupported configuration: the packed setting is not supported with this QEMU binary
--- /dev/null
+unsupported configuration: the ats setting is not supported with this QEMU binary
--- /dev/null
+unsupported configuration: the iommu setting is not supported with this QEMU binary
--- /dev/null
+unsupported configuration: the packed setting is not supported with this QEMU binary
--- /dev/null
+unsupported configuration: the ats setting is not supported with this QEMU binary
--- /dev/null
+unsupported configuration: the iommu setting is not supported with this QEMU binary
--- /dev/null
+unsupported configuration: the packed setting is not supported with this QEMU binary
--- /dev/null
+unsupported configuration: the ats setting is not supported with this QEMU binary
--- /dev/null
+unsupported configuration: the iommu setting is not supported with this QEMU binary
--- /dev/null
+unsupported configuration: the packed setting is not supported with this QEMU binary
--- /dev/null
+unsupported configuration: the ats setting is not supported with this QEMU binary
--- /dev/null
+unsupported configuration: the iommu setting is not supported with this QEMU binary
--- /dev/null
+unsupported configuration: the packed setting is not supported with this QEMU binary
--- /dev/null
+unsupported configuration: the ats setting is not supported with this QEMU binary
--- /dev/null
+unsupported configuration: the iommu setting is not supported with this QEMU binary
--- /dev/null
+unsupported configuration: the packed setting is not supported with this QEMU binary
--- /dev/null
+unsupported configuration: the ats setting is not supported with this QEMU binary
--- /dev/null
+unsupported configuration: the iommu setting is not supported with this QEMU binary
--- /dev/null
+unsupported configuration: the packed setting is not supported with this QEMU binary
--- /dev/null
+unsupported configuration: the ats setting is not supported with this QEMU binary
--- /dev/null
+unsupported configuration: the iommu setting is not supported with this QEMU binary
--- /dev/null
+unsupported configuration: the packed setting is not supported with this QEMU binary
--- /dev/null
+internal error: Missing source path attribute for char device
--- /dev/null
+unsupported configuration: virtio (non-)transitional models are not supported for input type=keyboard
virDomainObjPtr vm = NULL;
virDomainChrSourceDef monitor_chr;
g_autoptr(virConnect) conn = NULL;
+ virError *err = NULL;
char *log = NULL;
g_autoptr(virCommand) cmd = NULL;
qemuDomainObjPrivatePtr priv = NULL;
if (!(vm->def = virDomainDefParseFile(info->infile,
driver.xmlopt,
NULL, parseFlags))) {
- if (flags & FLAG_EXPECT_PARSE_ERROR)
+ err = virGetLastError();
+ if (!err) {
+ VIR_TEST_DEBUG("no error was reported for expected parse error");
+ goto cleanup;
+ }
+ if (flags & FLAG_EXPECT_PARSE_ERROR &&
+ virTestCompareToFile(err->message, info->errfile) >= 0)
goto ok;
goto cleanup;
}
if (!(cmd = testCompareXMLToArgvCreateArgs(&driver, vm, migrateURI, info,
flags, false))) {
- if (flags & FLAG_EXPECT_FAILURE)
+ err = virGetLastError();
+ if (!err) {
+ VIR_TEST_DEBUG("no error was reported for expected failure");
+ goto cleanup;
+ }
+ if (flags & FLAG_EXPECT_FAILURE &&
+ virTestCompareToFile(err->message, info->errfile) >= 0)
goto ok;
goto cleanup;
}
abs_srcdir, info->name);
info->outfile = g_strdup_printf("%s/qemuxml2argvdata/%s%s.args",
abs_srcdir, info->name, suffix ? suffix : "");
+ info->errfile = g_strdup_printf("%s/qemuxml2argvdata/%s%s.err",
+ abs_srcdir, info->name, suffix ? suffix : "");
}
# define FAKEROOTDIRTEMPLATE abs_builddir "/fakerootdir-XXXXXX"
g_setenv("USER", "test", TRUE);
g_setenv("LOGNAME", "test", TRUE);
g_setenv("HOME", "/home/test", TRUE);
+ g_setenv("LC_ALL", "C", TRUE);
g_unsetenv("TMPDIR");
g_unsetenv("LD_PRELOAD");
g_unsetenv("LD_LIBRARY_PATH");
DO_TEST_PARSE_ERROR("cpu-numa-disjoint", NONE);
DO_TEST("cpu-numa-disjoint", QEMU_CAPS_NUMA);
DO_TEST_FAILURE("cpu-numa-memshared", QEMU_CAPS_OBJECT_MEMORY_RAM);
- DO_TEST_PARSE_ERROR("cpu-numa-memshared", NONE);
+ DO_TEST_PARSE_ERROR("cpu-numa-memshared-1", NONE);
DO_TEST("cpu-numa-memshared", QEMU_CAPS_OBJECT_MEMORY_FILE);
DO_TEST("cpu-host-model", NONE);
DO_TEST("cpu-host-model-vendor", NONE);
QEMU_CAPS_MACHINE_PSERIES_RESIZE_HPT);
/* parse error: no QEMU_CAPS_MACHINE_PSERIES_RESIZE_HPT */
- DO_TEST_PARSE_ERROR("pseries-features",
+ DO_TEST_PARSE_ERROR("pseries-features-htp-resize",
QEMU_CAPS_DEVICE_SPAPR_PCI_HOST_BRIDGE,
QEMU_CAPS_MACHINE_PSERIES_CAP_HPT_MAX_PAGE_SIZE,
QEMU_CAPS_MACHINE_PSERIES_CAP_HTM,
QEMU_CAPS_MACHINE_PSERIES_CAP_IBS);
/* parse error: no QEMU_CAPS_MACHINE_PSERIES_CAP_HPT_MAX_PAGE_SIZE */
- DO_TEST_PARSE_ERROR("pseries-features",
+ DO_TEST_PARSE_ERROR("pseries-features-hpt-pagesize",
QEMU_CAPS_DEVICE_SPAPR_PCI_HOST_BRIDGE,
QEMU_CAPS_MACHINE_PSERIES_CAP_HTM,
QEMU_CAPS_MACHINE_PSERIES_CAP_NESTED_HV,
QEMU_CAPS_MACHINE_PSERIES_RESIZE_HPT);
/* parse error: no QEMU_CAPS_MACHINE_PSERIES_CAP_HTM */
- DO_TEST_PARSE_ERROR("pseries-features",
+ DO_TEST_PARSE_ERROR("pseries-features-htm",
QEMU_CAPS_DEVICE_SPAPR_PCI_HOST_BRIDGE,
QEMU_CAPS_MACHINE_PSERIES_CAP_HPT_MAX_PAGE_SIZE,
QEMU_CAPS_MACHINE_PSERIES_CAP_NESTED_HV,
QEMU_CAPS_MACHINE_PSERIES_RESIZE_HPT);
/* parse error: no QEMU_CAPS_MACHINE_PSERIES_CAP_NESTED_HV */
- DO_TEST_PARSE_ERROR("pseries-features",
+ DO_TEST_PARSE_ERROR("pseries-features-nested-hv",
QEMU_CAPS_DEVICE_SPAPR_PCI_HOST_BRIDGE,
QEMU_CAPS_MACHINE_PSERIES_CAP_HPT_MAX_PAGE_SIZE,
QEMU_CAPS_MACHINE_PSERIES_CAP_HTM,
QEMU_CAPS_MACHINE_PSERIES_RESIZE_HPT);
/* parse error: no QEMU_CAPS_MACHINE_PSERIES_CAP_CCF_ASSIST */
- DO_TEST_PARSE_ERROR("pseries-features",
+ DO_TEST_PARSE_ERROR("pseries-features-ccf",
QEMU_CAPS_DEVICE_SPAPR_PCI_HOST_BRIDGE,
QEMU_CAPS_MACHINE_PSERIES_CAP_HPT_MAX_PAGE_SIZE,
QEMU_CAPS_MACHINE_PSERIES_CAP_HTM,
QEMU_CAPS_MACHINE_PSERIES_RESIZE_HPT);
/* parse error: no QEMU_CAPS_MACHINE_PSERIES_CFPC */
- DO_TEST_PARSE_ERROR("pseries-features",
+ DO_TEST_PARSE_ERROR("pseries-features-cfpc",
QEMU_CAPS_DEVICE_SPAPR_PCI_HOST_BRIDGE,
QEMU_CAPS_MACHINE_PSERIES_RESIZE_HPT,
QEMU_CAPS_MACHINE_PSERIES_CAP_HPT_MAX_PAGE_SIZE,
QEMU_CAPS_MACHINE_PSERIES_CAP_IBS);
/* parse error: no QEMU_CAPS_MACHINE_PSERIES_SBBC */
- DO_TEST_PARSE_ERROR("pseries-features",
+ DO_TEST_PARSE_ERROR("pseries-features-sbbc",
QEMU_CAPS_DEVICE_SPAPR_PCI_HOST_BRIDGE,
QEMU_CAPS_MACHINE_PSERIES_RESIZE_HPT,
QEMU_CAPS_MACHINE_PSERIES_CAP_HPT_MAX_PAGE_SIZE,
QEMU_CAPS_MACHINE_PSERIES_CAP_IBS);
/* parse error: no QEMU_CAPS_MACHINE_PSERIES_IBS */
- DO_TEST_PARSE_ERROR("pseries-features",
+ DO_TEST_PARSE_ERROR("pseries-features-ibs",
QEMU_CAPS_DEVICE_SPAPR_PCI_HOST_BRIDGE,
QEMU_CAPS_MACHINE_PSERIES_RESIZE_HPT,
QEMU_CAPS_MACHINE_PSERIES_CAP_HPT_MAX_PAGE_SIZE,
VIR_FREE(info->infile);
VIR_FREE(info->outfile);
VIR_FREE(info->schemafile);
+ VIR_FREE(info->errfile);
virObjectUnref(info->qemuCaps);
}
const char *name;
char *infile;
char *outfile;
+ char *errfile;
virQEMUCapsPtr qemuCaps;
const char *migrateFrom;
int migrateFd;