From 71ea10851d973f10e0a448bf06bb593e6da738fe Mon Sep 17 00:00:00 2001 From: Pavel Hrdina Date: Wed, 23 Mar 2016 16:32:11 +0100 Subject: [PATCH] tests: remove unwanted VIR_FREE of spice and vnc default listen After the test and qemu_process refactor now we can benefit from default listen address for spice and vnc in tests. Signed-off-by: Pavel Hrdina --- .../qemuxml2argvdata/qemuxml2argv-graphics-spice-timeout.args | 2 +- tests/qemuxml2argvtest.c | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/qemuxml2argvdata/qemuxml2argv-graphics-spice-timeout.args b/tests/qemuxml2argvdata/qemuxml2argv-graphics-spice-timeout.args index 8a29a7e9f6..0950c1b285 100644 --- a/tests/qemuxml2argvdata/qemuxml2argv-graphics-spice-timeout.args +++ b/tests/qemuxml2argvdata/qemuxml2argv-graphics-spice-timeout.args @@ -29,7 +29,7 @@ media=cdrom,id=drive-ide0-1-0 \ -net tap,fd=3,vlan=0,name=hostnet0 \ -serial pty \ -device usb-tablet,id=input0 \ --spice port=5900 \ +-spice port=5900,addr=127.0.0.1 \ -vga std \ -device AC97,id=sound0,bus=pci.0,addr=0x3 \ -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5 diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c index df42d9ccd2..f1b2a8d9f7 100644 --- a/tests/qemuxml2argvtest.c +++ b/tests/qemuxml2argvtest.c @@ -489,9 +489,6 @@ mymain(void) driver.privileged = true; - VIR_FREE(driver.config->spiceListen); - VIR_FREE(driver.config->vncListen); - VIR_FREE(driver.config->vncTLSx509certdir); if (VIR_STRDUP_QUIET(driver.config->vncTLSx509certdir, "/etc/pki/libvirt-vnc") < 0) return EXIT_FAILURE; -- GitLab