]> xenbits.xensource.com Git - libvirt.git/commitdiff
tests: Test XML entities in source path for RNG device
authorPeter Krempa <pkrempa@redhat.com>
Mon, 25 Feb 2013 22:18:44 +0000 (23:18 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 27 Feb 2013 10:04:41 +0000 (11:04 +0100)
Users may want to specify XML entities in paths to devices. Ensure they
are parsed and used properly.

tests/qemuxml2argvdata/qemuxml2argv-virtio-rng-random.args
tests/qemuxml2argvdata/qemuxml2argv-virtio-rng-random.xml

index 4611ae540699dfd2ed5a5e6bf81b0b7a2a4822b0..ad271321e7dfccc8e6fbf317180327948f6aa8f1 100644 (file)
@@ -1 +1,6 @@
-LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test /usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -nodefaults -monitor unix:/tmp/test-monitor,server,nowait -no-acpi -boot c -usb -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 -object rng-random,id=rng0,filename=/test/phile -device virtio-rng-pci,rng=rng0,bus=pci.0,addr=0x4
+LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test /usr/bin/qemu \
+-S -M pc -m 214 -smp 1 -nographic -nodefaults \
+-monitor unix:/tmp/test-monitor,server,nowait -no-acpi -boot c -usb \
+-device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3 \
+-object 'rng-random,id=rng0,filename=/test/ph<ile' \
+-device virtio-rng-pci,rng=rng0,bus=pci.0,addr=0x4
index ab1f38c21e662fed943b202025ed92dcd6737833..0658f4b21ad721753d737d4930a9b945a0f5c16d 100644 (file)
@@ -17,7 +17,7 @@
     <controller type='usb' index='0'/>
     <memballoon model='virtio'/>
     <rng model='virtio'>
-      <backend model='random'>/test/phile</backend>
+      <backend model='random'>/test/ph&lt;ile</backend>
     </rng>
   </devices>
 </domain>