]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix and test round-trip of query parameters
authorEric Blake <eblake@redhat.com>
Mon, 26 Mar 2012 10:23:45 +0000 (11:23 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 26 Mar 2012 10:23:45 +0000 (11:23 +0100)
commit70c07e01dee24df0a1591d65799b66a8e89a3bd6
treea33772357fc6f1bd4b021e182868bbbeeec6ac6f
parentbeb76e374280f48ed01130710fad9b3641236f16
Fix and test round-trip of query parameters

When qparams support was dropped in commit bc1ff160, we forgot
to add tests to ensure that viruri can do the same round trip
handling of a URI. This round trip was broken, due to use
of the old 'query' field of xmlUriPtr, instead of the new
'query_raw'

Also, we forgot to report an OOM error.

* tests/viruritest.c (mymain): Add tests based on just-deleted
qparamtest.
(testURIParse): Allow difference in input and expected output.
* src/util/viruri.c (virURIFormat): Add missing error. Use
  query_raw, instead of query for xmlUriPtr object.
src/util/viruri.c
tests/viruritest.c