]> git.proxmox.com Git - mirror_qemu.git/commit - tests/acpi-utils.c
tests/acpi-utils: Drop dependence on global_qtest
authorEric Blake <eblake@redhat.com>
Mon, 11 Sep 2017 17:20:08 +0000 (12:20 -0500)
committerThomas Huth <thuth@redhat.com>
Mon, 17 Dec 2018 14:36:39 +0000 (15:36 +0100)
commit273e3d92cfa26ae07a72657b75b4b76105a0fbc4
tree8d0c2fda69cbd7116c38d75ff337fefc70f63114
parent24c01ffa9d356eed4530e31f7ef93844b6599502
tests/acpi-utils: Drop dependence on global_qtest

As a general rule, we prefer avoiding implicit global state
because it makes code harder to safely copy and paste without
thinking about the global state.  Adjust the helper code to
use explicit state instead, and update all callers.

bios-tables-test no longer depends on global_qtest, now that it
passes explicit state through the testsuite data; an assert
proves this fact (although we will get rid of it later, once
global_qtest is gone).

Signed-off-by: Eric Blake <eblake@redhat.com>
Acked-by: Igor Mammedov <imammedo@redhat.com>
Tested-by: Igor Mammedov <imammedo@redhat.com>
[thuth: adapted patch to current master branch]
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/acpi-utils.c
tests/acpi-utils.h
tests/bios-tables-test.c
tests/vmgenid-test.c