]> xenbits.xensource.com Git - libvirt.git/commit
testParseXMLDocFromFile: Validate that the replaced node is identical with parsed...
authorPeter Krempa <pkrempa@redhat.com>
Thu, 22 Sep 2022 14:41:25 +0000 (16:41 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 6 Oct 2022 08:54:24 +0000 (10:54 +0200)
commitee3b96bcb0d63503cf045bdc3ae75e91897f53ac
treebfe40cdae089f6ab66b12f8d79c4a3764e54a15d
parentb46667ac6f8bdb38dd5daff4487dfc4e76e04510
testParseXMLDocFromFile: Validate that the replaced node is identical with parsed root

When replacing a definition node by contents of a file the root node in
the file must match the replaced node.

Enforce that by passing the original node name as the 'rootnode'
argument of virXMLParse.

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