]> git.ipfire.org Git - thirdparty/libvirt.git/commit
networkxml2xmltest: Don't recreate xmlopt object
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 17 Dec 2025 09:44:21 +0000 (10:44 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 29 Jan 2026 12:38:59 +0000 (13:38 +0100)
commit04034eeb34b18a23c7b4187b42f4aee422d34302
tree2593705504f4222c2a63a3be94bd3e2667d41b36
parenteff3431dca51bdcf56829eca2a35d0a1dd395f31
networkxml2xmltest: Don't recreate xmlopt object

The aim of virNetworkXMLOption object is to provide some
immutable data to XML parser (e.g. various callbacks). Since the
object is immutable, it can be created once and then reused by
all test cases.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/networkxml2xmltest.c