]> xenbits.xensource.com Git - libvirt.git/commit
tests: Properly reset mocked CPU model
authorJiri Denemark <jdenemar@redhat.com>
Tue, 28 Aug 2018 14:04:13 +0000 (16:04 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 4 Sep 2018 08:40:34 +0000 (10:40 +0200)
commitd8313d3cf215ee607a4e351afe0cb71402d515ac
tree78cafc9f2d122fef8a1187b6aaec0cbe171a66bd
parent2864b4cd1ccda9c12f0c0ceb340836c42a2a0e52
tests: Properly reset mocked CPU model

When switching the host architecture to something for which we do not
have any host CPU model defined, the mocked
virQEMUCapsProbeHostCPUForEmulator would just return the previous CPU
model resulting in strange combinations, such as "core2duo" host CPU
model in QEMU capabilities for "AArch64" architecture. It currently
doesn't break any test case, but we should fix it anyway to avoid future
surprises which would be quite hard to debug.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
tests/testutilsqemu.c