]> git.proxmox.com Git - mirror_qemu.git/commit
tests/boot-sector: Drop dependence on global_qtest
authorEric Blake <eblake@redhat.com>
Mon, 11 Sep 2017 17:20:07 +0000 (12:20 -0500)
committerThomas Huth <thuth@redhat.com>
Wed, 14 Feb 2018 10:43:41 +0000 (11:43 +0100)
commit8b19f2b77e72c4b0d5f26a2ab6327b407bca195c
treeb605b0fcc259f2fbf37a839e14dbf0d37e8eb6b6
parent6a5c88f5728d33994b828ad4a333752269f08d92
tests/boot-sector: 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.

Fix some trailing whitespace while touching the file.

Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/bios-tables-test.c
tests/boot-sector.c
tests/boot-sector.h
tests/pxe-test.c
tests/vmgenid-test.c