[libvirt] [PATCH 01/10] qemu: monitor: Add possibility to reset command sequence in tests
John Ferlan
jferlan at redhat.com
Fri Jun 8 01:16:51 UTC 2018
On 06/04/2018 09:58 AM, Peter Krempa wrote:
> qemucapabilitiestest for simplicity uses one test monitor object for
> simulating work of two separate inquiries of the qemu process. To allow
> better testing in the future it will be required to reset the counter
> so that it accurately simulates how qemu would behave.
>
> This patch adds a private monitor API which allows to reset the counter
> which will be usable only in tests.
>
> Signed-off-by: Peter Krempa <pkrempa at redhat.com>
> ---
> src/qemu/qemu_monitor.c | 11 +++++++++++
> src/qemu/qemu_monitor_priv.h | 31 +++++++++++++++++++++++++++++++
> 2 files changed, 42 insertions(+)
> create mode 100644 src/qemu/qemu_monitor_priv.h
>
Reviewed-by: John Ferlan <jferlan at redhat.com>
John
More information about the libvir-list
mailing list