1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-01-30 01:47:24 +03:00
Michal Privoznik 776e9a6b26 testutilsqemu: Write getter/setter for CPU def global variables
As of 47503cc859 we are statically linking libtest_utils_qemu.a
into qemuhotplugmock.so (see the original commit for reasoning).
However, this breaks ASAN on older clang because now
qemuhotplugtest has two instances of virCPUDef global variables
(cpuDefault, cpuHaswell, cpuPower8, cpuPower9). One that comes
from the binary itself (which also links with
libtest_utils_qemu.a) and the other from the mock. Resolve this
by making the variables static and introducing getter and setter.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
2022-05-06 12:19:34 +02:00
..
2020-06-10 14:00:38 +02:00
2021-07-15 14:50:48 +02:00
2022-02-08 08:42:07 +01:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2019-10-15 11:25:25 +02:00
2020-07-10 09:40:58 +02:00
2021-09-09 18:06:13 +02:00
2022-01-12 11:43:30 +01:00
2022-01-12 11:43:30 +01:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2019-10-15 11:25:25 +02:00
2021-11-08 14:32:32 +01:00
2021-12-13 14:44:01 +01:00
2022-02-14 11:31:56 +01:00
2021-09-09 18:06:13 +02:00
2021-12-13 14:44:01 +01:00
2019-10-15 11:25:25 +02:00
2019-10-15 11:25:25 +02:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2021-12-13 14:44:01 +01:00
2021-09-09 18:06:13 +02:00
2021-09-17 14:28:00 +02:00
2021-12-13 14:44:01 +01:00
2021-09-09 18:06:13 +02:00
2021-09-09 18:06:13 +02:00
2022-02-08 08:42:07 +01:00
2021-09-09 18:06:13 +02:00