mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
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>
This commit is contained in:
parent
6a5c88f572
commit
8b19f2b77e
5 changed files with 11 additions and 9 deletions
|
@ -668,7 +668,7 @@ static void test_acpi_one(const char *params, test_data *data)
|
|||
|
||||
qtest_start(args);
|
||||
|
||||
boot_sector_test();
|
||||
boot_sector_test(global_qtest);
|
||||
|
||||
data->tables = g_array_new(false, true, sizeof(AcpiSdtTable));
|
||||
test_acpi_rsdp_address(data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue