diff options
author | Eric Blake <eblake@redhat.com> | 2017-09-11 12:20:07 -0500 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2018-02-14 11:43:41 +0100 |
commit | 8b19f2b77e72c4b0d5f26a2ab6327b407bca195c (patch) | |
tree | b605b0fcc259f2fbf37a839e14dbf0d37e8eb6b6 /tests/boot-sector.h | |
parent | 6a5c88f5728d33994b828ad4a333752269f08d92 (diff) | |
download | qemu-8b19f2b77e72c4b0d5f26a2ab6327b407bca195c.zip qemu-8b19f2b77e72c4b0d5f26a2ab6327b407bca195c.tar.gz qemu-8b19f2b77e72c4b0d5f26a2ab6327b407bca195c.tar.bz2 |
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>
Diffstat (limited to 'tests/boot-sector.h')
-rw-r--r-- | tests/boot-sector.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/boot-sector.h b/tests/boot-sector.h index 35d61c7..6ee6bb4 100644 --- a/tests/boot-sector.h +++ b/tests/boot-sector.h @@ -5,7 +5,7 @@ * * Authors: * Michael S. Tsirkin <mst@redhat.com> - * Victor Kaplansky <victork@redhat.com> + * Victor Kaplansky <victork@redhat.com> * * This work is licensed under the terms of the GNU GPL, version 2 or later. * See the COPYING file in the top-level directory. @@ -14,11 +14,13 @@ #ifndef TEST_BOOT_SECTOR_H #define TEST_BOOT_SECTOR_H +#include "libqtest.h" + /* Create boot disk file. fname must be a suitable string for mkstemp() */ int boot_sector_init(char *fname); /* Loop until signature in memory is OK. */ -void boot_sector_test(void); +void boot_sector_test(QTestState *qts); /* unlink boot disk file. */ void boot_sector_cleanup(const char *fname); |