Skip to contentSkip to conversation

build-sys: fix make check with --disable-vnc

PATCH New Marc-André Lureau 1 participant 1 message Aug 12, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 build-sys: fix make check with --disable-vnc

---
 tests/ide-test.c      | 2 ++
 tests/ipmi-bt-test.c  | 5 ++++-
 tests/ipmi-kcs-test.c | 8 ++++++--
 3 files changed, 12 insertions(+), 3 deletions(-)
tests/ide-test.c +2 -0
index 1e51af2..f6e10ad 100644
@@ -582,7 +582,9 @@ static void test_retry_flush(const char *machine)
     prepare_blkdebug_script(debug_path, "flush_to_disk");
 
     ide_test_start(
+#ifdef CONFIG_VNC
         "-vnc none "
+#endif
         "-drive file=blkdebug:%s:%s,if=ide,cache=writeback,format=raw,"
         "rerror=stop,werror=stop",
         debug_path, tmp_path);
tests/ipmi-bt-test.c +4 -1
index be9005e..40d456a 100644
@@ -415,7 +415,10 @@ int main(int argc, char **argv)
     /* Run the tests */
     g_test_init(&argc, &argv, NULL);
 
-    cmdline = g_strdup_printf("-vnc none"
+    cmdline = g_strdup_printf(
+#ifdef CONFIG_VNC
+          "-vnc none"
+#endif
           " -chardev socket,id=ipmi0,host=localhost,port=%d,reconnect=10"
           " -device ipmi-bmc-extern,chardev=ipmi0,id=bmc0"
           " -device isa-ipmi-bt,bmc=bmc0", emu_port);
tests/ipmi-kcs-test.c +6 -2
index 3750389..451feb3 100644
@@ -276,8 +276,12 @@ int main(int argc, char **argv)
     /* Run the tests */
     g_test_init(&argc, &argv, NULL);
 
-    cmdline = g_strdup_printf("-vnc none -device ipmi-bmc-sim,id=bmc0"
-                              " -device isa-ipmi-kcs,bmc=bmc0");
+    cmdline = g_strdup_printf(
+#ifdef CONFIG_VNC
+        "-vnc none"
+#endif
+        " -device ipmi-bmc-sim,id=bmc0"
+        " -device isa-ipmi-kcs,bmc=bmc0");
     qtest_start(cmdline);
     qtest_irq_intercept_in(global_qtest, "ioapic");
     qtest_add_func("/ipmi/local/kcs_base", test_kcs_base);
Signature · 1 line
2.9.0