]> git.proxmox.com Git - mirror_qemu.git/blobdiff - tests/virtio-console-test.c
iotests: Fix 195 if IMGFMT is part of TEST_DIR
[mirror_qemu.git] / tests / virtio-console-test.c
index 6be96e8c64e42d9055b25030a3b19dffe4de2ce3..1c3de072f4e82d62bb68134881d67fe40db5f65d 100644 (file)
@@ -7,10 +7,8 @@
  * See the COPYING file in the top-level directory.
  */
 
-#include <glib.h>
-#include <string.h>
-#include "libqtest.h"
 #include "qemu/osdep.h"
+#include "libqtest.h"
 
 /* Tests only initialization so far. TODO: Replace with functional tests */
 static void console_pci_nop(void)
@@ -29,13 +27,9 @@ static void serialport_pci_nop(void)
 
 int main(int argc, char **argv)
 {
-    int ret;
-
     g_test_init(&argc, &argv, NULL);
     qtest_add_func("/virtio/console/pci/nop", console_pci_nop);
     qtest_add_func("/virtio/serialport/pci/nop", serialport_pci_nop);
 
-    ret = g_test_run();
-
-    return ret;
+    return g_test_run();
 }