summaryrefslogtreecommitdiff
path: root/tests/genericxml2xmloutdata
diff options
context:
space:
mode:
authorJán Tomko <jtomko@redhat.com>2017-09-26 13:30:10 +0200
committerJán Tomko <jtomko@redhat.com>2017-09-26 13:36:51 +0200
commitfcd5c61cd4ea3d1a0a14260e2b3443b0292b19cb (patch)
tree9cb8ef9018d1944b3c43f9851929afc14dbb5019 /tests/genericxml2xmloutdata
parent93575f345116fe1413f6fe3109227b8be2f416da (diff)
downloadlibvirt-fcd5c61cd4ea3d1a0a14260e2b3443b0292b19cb.tar.gz
conf: fix formatting of udp chardev attributes
It is possible (although possibly not very useful) to leave out the service attribute when using <source mode='bind'/> Fix the formatter bug introduced by commit 4a0da34 and format the host when its present (checked for non-NULL inside virBufferEscapeString) instead of basing it on the presence of the service attribute. https://bugzilla.redhat.com/show_bug.cgi?id=1455825
Diffstat (limited to 'tests/genericxml2xmloutdata')
-rw-r--r--tests/genericxml2xmloutdata/generic-chardev-udp.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/genericxml2xmloutdata/generic-chardev-udp.xml b/tests/genericxml2xmloutdata/generic-chardev-udp.xml
index c4a719f2f6..c9b3e5550c 100644
--- a/tests/genericxml2xmloutdata/generic-chardev-udp.xml
+++ b/tests/genericxml2xmloutdata/generic-chardev-udp.xml
@@ -29,7 +29,7 @@
<target type='virtio' name='test3'/>
</channel>
<channel type='udp'>
- <source mode='bind'/>
+ <source mode='bind' host='localhost'/>
<source mode='connect' service='5678'/>
<target type='virtio' name='test4'/>
</channel>