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.
parse_flags |= parseFlags;
+ if (!virFileExists(infile)) {
+ VIR_TEST_DEBUG("Test input file '%s' is missing", infile);
+ return -1;
+ }
+
if (!live)
format_flags |= VIR_DOMAIN_DEF_FORMAT_INACTIVE;