]> xenbits.xensource.com Git - libvirt.git/commit
tests: utils: Fail XML file comparison if input file doesn't exist
authorPeter Krempa <pkrempa@redhat.com>
Thu, 23 Jun 2016 13:22:06 +0000 (15:22 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 23 Jun 2016 19:11:32 +0000 (21:11 +0200)
commitcb049b9ad4d0b76f3eac33c84846efb82a969987
tree5b7520b2d04c3eddee77e99033c2d07516f686a2
parentdabf1c5b12685b849705f8e818fd97977b733cf6
tests: utils: Fail XML file comparison if input file doesn't exist

In cases where we expect parse failure of the test input file the
testsuite can't differentiate if the parser failed when parsing or when
opening the file. Add a call to virFileExists and error out on missing
input files.

Missing output files are partially expected when regenerating test
output.
tests/testutils.c