mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-12-23 17:33:50 +03:00
runtest: Suppress undeclared entity errors
This commit is contained in:
parent
0d0cb4c2bd
commit
02cbb2b64f
@ -2131,7 +2131,8 @@ noentParseTest(const char *filename, const char *result,
|
||||
/*
|
||||
* base of the test, parse with the old API
|
||||
*/
|
||||
doc = xmlReadFile(filename, NULL, options | XML_PARSE_NOWARNING);
|
||||
doc = xmlReadFile(filename, NULL,
|
||||
options | XML_PARSE_NOWARNING | XML_PARSE_NOERROR);
|
||||
if (doc == NULL)
|
||||
return(1);
|
||||
temp = resultFilename(filename, temp_directory, ".res");
|
||||
@ -2148,7 +2149,8 @@ noentParseTest(const char *filename, const char *result,
|
||||
/*
|
||||
* Parse the saved result to make sure the round trip is okay
|
||||
*/
|
||||
doc = xmlReadFile(filename, NULL, options | XML_PARSE_NOWARNING);
|
||||
doc = xmlReadFile(filename, NULL,
|
||||
options | XML_PARSE_NOWARNING | XML_PARSE_NOERROR);
|
||||
if (doc == NULL)
|
||||
return(1);
|
||||
xmlSaveFile(temp, doc);
|
||||
|
Loading…
Reference in New Issue
Block a user