hw/intc/i8259: Refactor pic_read_irq() to avoid uninitialized variable
[qemu/ar7.git] / tests / qtest / fuzz-test.c
blob00149abec769a332769965dde651b8f7861785ff
1 /*
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.
8 */
10 #include "qemu/osdep.h"
12 #include "libqos/libqtest.h"
14 static void test_lp1878642_pci_bus_get_irq_level_assert(void)
16 QTestState *s;
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);
24 qtest_quit(s);
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);
38 return g_test_run();