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(a)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(a)redhat.com>
John