]> git.ipfire.org Git - thirdparty/libvirt.git/commit
test: qemu: Fix qemu monitor test utils to allow testing HMP
authorPeter Krempa <pkrempa@redhat.com>
Tue, 10 Mar 2015 12:10:20 +0000 (13:10 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 11 Mar 2015 10:28:03 +0000 (11:28 +0100)
commitfc4713454d8d0c2b81da8b7c1bfab80cc1507c72
tree3859c54f1550a5aa756038225516440f3484cc17
parent4f6b6788c455ff9bb8c714beb7887dcab32a75cc
test: qemu: Fix qemu monitor test utils to allow testing HMP

qemu HMP commands sent by libvirt are terminated just by a '\r'. The
fake monitor used in tests wasn't prepared to handle this and the
communication would hang on an attempt to do a HMP conversation.

Add a special case for handling commands separated by \r in case HMP is
used.
tests/qemumonitortestutils.c