]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tests: Make schema test fail on XML schema errors
authorPeter Krempa <pkrempa@redhat.com>
Tue, 2 Aug 2016 07:11:33 +0000 (09:11 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 2 Aug 2016 14:21:08 +0000 (16:21 +0200)
commit27bdc0af009551adf36da1362c73b3a3fd663601
tree88c0a9de6dbcf85b4bcdb0619f634ec5c7017d67
parent6293644eb0b653ed5de0614c135aa5c26c8fc6c7
tests: Make schema test fail on XML schema errors

Failure to parse the schema file would not trigger a test suite failure.

In addition to making the test fail it's necessary to split up the
parsing of the schema file into a separate test.

This is necessary as the XML validator uses libvirt errors to report
problems parsing of the actual schema RNG needs to be split out into a
separate function and called via virTestRun which has the
infrastructure to report them.
tests/virschematest.c