2 * QTest testcase for fuzz case
4 * Copyright (c) 2020 Li Qiang <liq3ea@gmail.com>
6 * This work is licensed under the terms of the GNU GPL, version 2 or later.
7 * See the COPYING file in the top-level directory.
10 #include "qemu/osdep.h"
12 #include "libqos/libqtest.h"
14 static void test_lp1878642_pci_bus_get_irq_level_assert(void)
18 s
= qtest_init("-M pc-q35-5.0 "
19 "-nographic -monitor none -serial none");
21 qtest_outl(s
, 0xcf8, 0x8400f841);
22 qtest_outl(s
, 0xcfc, 0xebed205d);
23 qtest_outl(s
, 0x5d02, 0xebed205d);
27 int main(int argc
, char **argv
)
29 const char *arch
= qtest_get_arch();
31 g_test_init(&argc
, &argv
, NULL
);
33 if (strcmp(arch
, "i386") == 0 || strcmp(arch
, "x86_64") == 0) {
34 qtest_add_func("fuzz/test_lp1878642_pci_bus_get_irq_level_assert",
35 test_lp1878642_pci_bus_get_irq_level_assert
);