]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: remove unwanted VIR_FREE of spice and vnc default listen
authorPavel Hrdina <phrdina@redhat.com>
Wed, 23 Mar 2016 15:32:11 +0000 (16:32 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Fri, 8 Apr 2016 15:36:27 +0000 (17:36 +0200)
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 <phrdina@redhat.com>
tests/qemuxml2argvdata/qemuxml2argv-graphics-spice-timeout.args
tests/qemuxml2argvtest.c

index 8a29a7e9f65d07ea022b1fc8d22e73aeeeba0c24..0950c1b2856c75e20f362351efea2a13b294a8d0 100644 (file)
@@ -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
index df42d9ccd256dbc52b485f7cab13105d6bf75b12..f1b2a8d9f748a3b138b7987057930a2aa88aff07 100644 (file)
@@ -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;