]> xenbits.xensource.com Git - libvirt.git/commit
qemuxml2argvtest: add test for remove cpu features
authorChristian Ehrhardt <christian.ehrhardt@canonical.com>
Thu, 25 Apr 2019 09:51:55 +0000 (11:51 +0200)
committerChristian Ehrhardt <christian.ehrhardt@canonical.com>
Wed, 15 May 2019 07:33:03 +0000 (09:33 +0200)
commitb51bfa70554f4bc43cbd6841b78d67b391909184
treed60674849b0efbdebc36ba259aaf6ce7d19d4603
parent2900575db892700fab8a4b8541474d9bd3444a4a
qemuxml2argvtest: add test for remove cpu features

CPU features that always were a no-op in qemu got removed there.
We no more specify them as that would trigger errors and fail to start
qemu. This test ensures that those features really are not rendered into
qemu command line.

Without the related fix this test will trigger and fail like:
 In 'tests/qemuxml2argvdata/cpu-no-removed-features.args':
 Offset 371
 Expect [ ]
 Actual [,-osxsave,-ospke ]

Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Tested-by: Daniel Henrique Barboza <danielhb413@gmail.com>
tests/qemuxml2argvdata/cpu-no-removed-features.args [new file with mode: 0644]
tests/qemuxml2argvdata/cpu-no-removed-features.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c