]> git.ipfire.org Git - thirdparty/libvirt.git/commit
cputest: Don't use preferred model with forbidden fallback
authorJiri Denemark <jdenemar@redhat.com>
Tue, 8 Nov 2016 20:45:23 +0000 (21:45 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 15 Nov 2016 14:49:16 +0000 (15:49 +0100)
commit797bdcedc95dcc4ca157295295ec930e9c533882
tree2c7fa80eec29f25b064ec167f4745f703ca7acec
parentf60c5e4eb607f3fb70a6645de004cc73f81dffab
cputest: Don't use preferred model with forbidden fallback

Using a preferred model for guest CPUs with forbidden fallback masks a
bug in the code. It would just happily use another CPU model supported
by a hypervisor even though it is explicitly forbidden in the CPU XML.

This patch temporarily changes the expected result to -2, which is used
when the result XML file cannot be found (but it was supposed not to be
found since the tested API should have failed). The result will be
switched back to -1 few commits later when the original bug gets fixed.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
tests/cputest.c