@@ -7,10 +7,7 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
-#include <string.h>
#include "libqtest.h"
-#include "qemu/osdep.h"
/* Tests only initialization so far. TODO: Replace with functional tests */
static void nop(void)
@@ -22,18 +22,13 @@
* THE SOFTWARE.
*/
-#include <stdint.h>
-#include <string.h>
-#include <stdio.h>
#include <getopt.h>
-#include <glib.h>
#include "libqtest.h"
#include "libqos/libqos-pc.h"
#include "libqos/ahci.h"
#include "libqos/pci-pc.h"
-#include "qemu-common.h"
#include "qemu/host-utils.h"
#include "hw/pci/pci_ids.h"
@@ -10,13 +10,8 @@
* See the COPYING file in the top-level directory.
*/
-#include <string.h>
-#include <stdio.h>
-#include <glib.h>
#include <glib/gstdio.h>
-#include "qemu-common.h"
#include "libqtest.h"
-#include "qemu/compiler.h"
#include "hw/i386/acpi-defs.h"
#include "hw/i386/smbios.h"
#include "qemu/bitmap.h"
@@ -10,8 +10,6 @@
* See the COPYING file in the top-level directory.
*/
-#include <string.h>
-#include <glib.h>
#include "libqos/fw_cfg.h"
#include "libqtest.h"
@@ -7,10 +7,7 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
-#include <string.h>
#include "libqtest.h"
-#include "qemu/osdep.h"
static void pci_cirrus(void)
{
@@ -10,8 +10,6 @@
* See the COPYING.LIB file in the top-level directory.
*/
-#include <glib.h>
-#include <string.h>
#include "libqtest.h"
static void drive_add(void)
@@ -7,10 +7,7 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
-#include <string.h>
#include "libqtest.h"
-#include "qemu/osdep.h"
/* Tests only initialization so far. TODO: Replace with functional tests */
static void test_device(gconstpointer data)
@@ -7,10 +7,7 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
-#include <string.h>
#include "libqtest.h"
-#include "qemu/osdep.h"
static void test_device(gconstpointer data)
{
@@ -11,14 +11,7 @@
*
*/
-#include <glib.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include <unistd.h>
-
#include "libqtest.h"
-#include "qemu/bswap.h"
typedef struct TestCase TestCase;
struct TestCase {
@@ -7,10 +7,7 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
-#include <string.h>
#include "libqtest.h"
-#include "qemu/osdep.h"
/* Tests only initialization so far. TODO: Replace with functional tests */
static void nop(void)
@@ -22,14 +22,7 @@
* THE SOFTWARE.
*/
-#include <stdint.h>
-#include <string.h>
-#include <stdio.h>
-
-#include <glib.h>
-
#include "libqtest.h"
-#include "qemu-common.h"
#define TEST_IMAGE_SIZE 1440 * 1024
@@ -10,9 +10,6 @@
* See the COPYING file in the top-level directory.
*/
-#include <string.h>
-#include <glib.h>
-
#include "libqtest.h"
#define NO_QEMU_PROTOS
#include "hw/nvram/fw_cfg.h"
@@ -15,11 +15,6 @@
* Improvements welcome.
*/
-#include <glib.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include "qemu-common.h"
#include "libqtest.h"
static char *create_test_img(int secs)
@@ -12,13 +12,7 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
-#include <string.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <errno.h>
#include <sys/mman.h>
-#include <stdlib.h>
#include "libqtest.h"
#include "libqos/pci.h"
@@ -27,8 +21,6 @@
#define BROKEN 1
-#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
-
typedef struct TestData
{
int num_cpus;
@@ -7,10 +7,7 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
-#include <string.h>
#include "libqtest.h"
-#include "qemu/osdep.h"
/* Tests only initialization so far. TODO: Replace with functional tests */
static void nop(void)
@@ -22,18 +22,11 @@
* THE SOFTWARE.
*/
-#include <stdint.h>
-#include <string.h>
-#include <stdio.h>
-
-#include <glib.h>
-
#include "libqtest.h"
#include "libqos/libqos.h"
#include "libqos/pci-pc.h"
#include "libqos/malloc-pc.h"
-#include "qemu-common.h"
#include "hw/pci/pci_ids.h"
#include "hw/pci/pci_regs.h"
@@ -7,10 +7,7 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
-#include <string.h>
#include "libqtest.h"
-#include "qemu/osdep.h"
#define HDA_ID "hda0"
#define CODEC_DEVICES " -device hda-output,bus=" HDA_ID ".0" \
@@ -7,10 +7,7 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
-#include <string.h>
#include "libqtest.h"
-#include "qemu/osdep.h"
/* Tests only initialization so far. TODO: Replace with functional tests */
static void nop(void)
@@ -7,10 +7,7 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
-#include <string.h>
#include "libqtest.h"
-#include "qemu/osdep.h"
/* Tests only initialization so far. TODO: Replace with functional tests */
static void nop(void)
@@ -22,13 +22,10 @@
* THE SOFTWARE.
*/
-#include <glib.h>
-
#include "libqtest.h"
#include "libqos/ahci.h"
#include "libqos/pci-pc.h"
-#include "qemu-common.h"
#include "qemu/host-utils.h"
#include "hw/pci/pci_ids.h"
@@ -12,10 +12,8 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
#include "libqos/fw_cfg.h"
#include "libqtest.h"
-#include "qemu/bswap.h"
void qfw_cfg_select(QFWCFG *fw_cfg, uint16_t key)
{
@@ -8,11 +8,6 @@
*/
#include "libqos/i2c.h"
-#include <glib.h>
-#include <string.h>
-
-#include "qemu/osdep.h"
-#include "qemu/bswap.h"
#include "libqtest.h"
enum OMAPI2CRegisters {
@@ -1,8 +1,3 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <glib.h>
-#include <unistd.h>
-#include <fcntl.h>
#include <sys/wait.h>
#include "libqtest.h"
@@ -15,11 +15,8 @@
#include "hw/pci/pci_regs.h"
-#include "qemu-common.h"
#include "qemu/host-utils.h"
-#include <glib.h>
-
#define ACPI_PCIHP_ADDR 0xae00
#define PCI_EJ_BASE 0x0008
@@ -11,10 +11,7 @@
* This work is licensed under the terms of the GNU GPL, version 2 or later.
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
-#include <string.h>
#include "libqtest.h"
-#include "qemu/osdep.h"
#include "hw/usb/uhci-regs.h"
#include "libqos/usb.h"
@@ -7,8 +7,6 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
-#include <stdio.h>
#include "libqtest.h"
#include "libqos/virtio.h"
#include "libqos/virtio-mmio.h"
@@ -7,8 +7,6 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
-#include <stdio.h>
#include "libqtest.h"
#include "libqos/virtio.h"
#include "libqos/virtio-pci.h"
@@ -7,7 +7,6 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
#include "libqtest.h"
#include "libqos/virtio.h"
@@ -16,20 +16,11 @@
*/
#include "libqtest.h"
-#include <glib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/wait.h>
#include <sys/un.h>
-#include <inttypes.h>
-#include <errno.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <string.h>
-
-#include "qemu/compiler.h"
-#include "qemu/osdep.h"
+
#include "qapi/qmp/json-parser.h"
#include "qapi/qmp/json-streamer.h"
#include "qapi/qmp/qjson.h"
@@ -19,11 +19,9 @@
#include <stddef.h>
#include <stdint.h>
-#include <stdbool.h>
-#include <stdarg.h>
#include <sys/types.h>
#include "qapi/qmp/qdict.h"
-#include "glib-compat.h"
+#include "qemu-common.h"
typedef struct QTestState QTestState;
@@ -12,12 +12,6 @@
*
*/
-#include <glib.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include <unistd.h>
-
#include "libqtest.h"
#define RTC_SECONDS 0x9
@@ -7,10 +7,7 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
-#include <string.h>
#include "libqtest.h"
-#include "qemu/osdep.h"
/* Tests only initialization so far. TODO: Replace with functional tests */
static void pci_nop(void)
@@ -7,10 +7,7 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
-#include <string.h>
#include "libqtest.h"
-#include "qemu/osdep.h"
/* Tests only initialization so far. TODO: Replace with functional tests */
static void nop(void)
@@ -7,12 +7,7 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
-#include <string.h>
-
-#include "qemu-common.h"
#include "libqtest.h"
-#include "qemu/osdep.h"
#include "qapi/qmp/types.h"
struct PCTestData {
@@ -7,10 +7,7 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
-#include <string.h>
#include "libqtest.h"
-#include "qemu/osdep.h"
/* Tests only initialization so far. TODO: Replace with functional tests */
static void pci_nop(void)
@@ -7,10 +7,7 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
-#include <string.h>
#include "libqtest.h"
-#include "qemu/osdep.h"
static void test_panic(void)
{
@@ -7,12 +7,7 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
-#include <string.h>
-
-#include "qemu-common.h"
#include "libqtest.h"
-#include "qemu/osdep.h"
#include "qapi/qmp/types.h"
static const char *blacklist_x86[] = {
@@ -11,12 +11,6 @@
*
*/
-#include <glib.h>
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-#include <unistd.h>
-
#include "libqtest.h"
#include "hw/timer/mc146818rtc_regs.h"
@@ -7,12 +7,8 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
-#include <string.h>
#include "libqtest.h"
#include "libqos/pci-pc.h"
-#include "qemu/osdep.h"
-#include "qemu-common.h"
/* Tests only initialization so far. TODO: Replace with functional tests */
static void nop(void)
@@ -7,7 +7,6 @@
* This work is licensed under the terms of the GNU GPL, version 2 or later.
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
#include "libqtest.h"
@@ -7,8 +7,6 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
-
#include "libqtest.h"
#include "libqos/i2c.h"
#include "hw/misc/tmp105_regs.h"
@@ -7,10 +7,7 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
-#include <string.h>
#include "libqtest.h"
-#include "qemu/osdep.h"
/* Tests only initialization so far. TODO: Replace with functional tests */
static void nop(void)
@@ -7,12 +7,8 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
-#include <string.h>
-#include <stdio.h>
#include "libqtest.h"
#include "libqos/pci-pc.h"
-#include "qemu/osdep.h"
#include "hw/usb/uhci-regs.h"
#include "hw/usb/ehci-regs.h"
#include "libqos/usb.h"
@@ -7,10 +7,7 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
-#include <string.h>
#include "libqtest.h"
-#include "qemu/osdep.h"
#include "libqos/usb.h"
@@ -7,10 +7,7 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
-#include <string.h>
#include "libqtest.h"
-#include "qemu/osdep.h"
#include "libqos/usb.h"
#include "hw/usb/uhci-regs.h"
@@ -7,10 +7,7 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
-#include <string.h>
#include "libqtest.h"
-#include "qemu/osdep.h"
#include "libqos/usb.h"
@@ -12,7 +12,6 @@
#include <glib.h>
#include "libqtest.h"
-#include "qemu/option.h"
#include "sysemu/char.h"
#include "sysemu/sysemu.h"
@@ -7,12 +7,7 @@
* See the COPYING file in the top-level directory.
*/
-#include <stdlib.h>
-#include <string.h>
-#include <glib.h>
#include "libqtest.h"
-#include "qemu-common.h"
-#include "qemu/osdep.h"
/* Tests only initialization so far. TODO: Replace with functional tests */
static void pci_nop(void)
@@ -7,10 +7,7 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
-#include <string.h>
#include "libqtest.h"
-#include "qemu/osdep.h"
/* Tests only initialization so far. TODO: Replace with functional tests */
static void pci_nop(void)
@@ -8,11 +8,6 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
-#include <string.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <stdio.h>
#include "libqtest.h"
#include "libqos/virtio.h"
#include "libqos/virtio-pci.h"
@@ -21,7 +16,6 @@
#include "libqos/malloc.h"
#include "libqos/malloc-pc.h"
#include "libqos/malloc-generic.h"
-#include "qemu/bswap.h"
#define QVIRTIO_BLK_F_BARRIER 0x00000001
#define QVIRTIO_BLK_F_SIZE_MAX 0x00000002
@@ -7,10 +7,7 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
-#include <string.h>
#include "libqtest.h"
-#include "qemu/osdep.h"
/* Tests only initialization so far. TODO: Replace with functional tests */
static void console_pci_nop(void)
@@ -7,10 +7,7 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
-#include <string.h>
#include "libqtest.h"
-#include "qemu/osdep.h"
#include "libqos/pci.h"
#define PCI_SLOT_HP 0x06
@@ -7,10 +7,7 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
-#include <string.h>
#include "libqtest.h"
-#include "qemu/osdep.h"
#include "libqos/pci.h"
#define PCI_SLOT_HP 0x06
@@ -7,10 +7,7 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
-#include <string.h>
#include "libqtest.h"
-#include "qemu/osdep.h"
/* Tests only initialization so far. TODO: Replace with functional tests */
static void pci_nop(void)
@@ -7,10 +7,7 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
-#include <string.h>
#include "libqtest.h"
-#include "qemu/osdep.h"
/* Tests only initialization so far. TODO: Replace with functional tests */
static void pci_nop(void)
@@ -7,10 +7,7 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
-#include <string.h>
#include "libqtest.h"
-#include "qemu/osdep.h"
/* Tests only initialization so far. TODO: Replace with functional tests */
static void nop(void)
@@ -7,10 +7,7 @@
* See the COPYING file in the top-level directory.
*/
-#include <glib.h>
-#include <string.h>
#include "libqtest.h"
-#include "qemu/osdep.h"
#define NS_PER_SEC 1000000000ULL