summary refs log tree commit diff stats
path: root/tests/fdc-test.c
diff options
context:
space:
mode:
authorKewei Yu <keweihk@gmail.com>2014-01-06 14:05:24 +0800
committerKevin Wolf <kwolf@redhat.com>2014-01-22 12:07:16 +0100
commitb7fcff01790d25f48d81ef6c8c3399577096a555 (patch)
treec466d8b15a495026d9550a9bad393dacb88c2be4 /tests/fdc-test.c
parent9f23fce7b2e78b917f03ccd366e3e151c0a1a419 (diff)
downloadfocaccia-qemu-b7fcff01790d25f48d81ef6c8c3399577096a555.tar.gz
focaccia-qemu-b7fcff01790d25f48d81ef6c8c3399577096a555.zip
qtest: Fix the bug about disable vnc causes "make check" fail
When we disable vnc from "./configure", QEMU can't use the vnc option.
So qtest can't use the "vnc -none ", otherwise "make check" fails.
If QEMU uses "-display none", "-vnc none" is excrescent, So we just need to drop it.

Signed-off-by: Kewei Yu <keweihk@gmail.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/fdc-test.c')
-rw-r--r--tests/fdc-test.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/fdc-test.c b/tests/fdc-test.c
index 38b5b178d0..37096dcc13 100644
--- a/tests/fdc-test.c
+++ b/tests/fdc-test.c
@@ -518,7 +518,6 @@ static void fuzz_registers(void)
 int main(int argc, char **argv)
 {
     const char *arch = qtest_get_arch();
-    char *cmdline;
     int fd;
     int ret;
 
@@ -538,9 +537,7 @@ int main(int argc, char **argv)
     /* Run the tests */
     g_test_init(&argc, &argv, NULL);
 
-    cmdline = g_strdup_printf("-vnc none ");
-
-    qtest_start(cmdline);
+    qtest_start(NULL);
     qtest_irq_intercept_in(global_qtest, "ioapic");
     qtest_add_func("/fdc/cmos", test_cmos);
     qtest_add_func("/fdc/no_media_on_start", test_no_media_on_start);