]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemumonitorjsontest: Refactor chardev hotplug testing
authorPeter Krempa <pkrempa@redhat.com>
Tue, 8 Feb 2022 15:41:33 +0000 (16:41 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 14 Feb 2022 12:14:00 +0000 (13:14 +0100)
commit128f5c3383f8c0e739070b0a606b8732e0f3144c
treedc49e39ae8d4d1ad35d1f9f7ce1665a6b169ddae
parente6f837f611524e315c8f1b2ad735c56521458fa3
qemumonitorjsontest: Refactor chardev hotplug testing

The main objective of this patch is to use a proper instance of
virDomainChrSourceDef allocated with the private data.

To achieve this the test cases are grouped into blocks by how much they
fill in the chardev definition. Some test cases are moved around so
that the resulting sequence doesn't need extra clearing.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/qemumonitorjsontest.c