diff options
author | Eric Blake <eblake@redhat.com> | 2012-03-26 11:23:45 +0100 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2012-03-26 11:23:45 +0100 |
commit | 70c07e01dee24df0a1591d65799b66a8e89a3bd6 (patch) | |
tree | a33772357fc6f1bd4b021e182868bbbeeec6ac6f /tests/virnetmessagetest.c | |
parent | beb76e374280f48ed01130710fad9b3641236f16 (diff) | |
download | libvirt-70c07e01dee24df0a1591d65799b66a8e89a3bd6.tar.gz |
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.
Diffstat (limited to 'tests/virnetmessagetest.c')
0 files changed, 0 insertions, 0 deletions