tests: Add negative test for Intel IOMMU
commit69a8c64f4b875f0e61f59faa605c31573b06a62a
authorAndrea Bolognani <abologna@redhat.com>
Fri, 17 May 2019 14:37:56 +0000 (17 16:37 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Wed, 22 May 2019 12:54:32 +0000 (22 14:54 +0200)
treef6dba392e5893cd3cb6a0c10c67fd5fdb1cb1aed
parent5b0dcbcdef03b0fd32087c78edc4ad74fd6dd188
tests: Add negative test for Intel IOMMU

Make sure validation is working as intended by trying to use
Intel IOMMU with the i440fx machine type, though we know it's
a q35-only feature, and expecting an error to be returned.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/qemuxml2argvdata/intel-iommu-wrong-machine.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c