mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-12-24 21:33:51 +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
|
* 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)
|
if (doc == NULL)
|
||||||
return(1);
|
return(1);
|
||||||
temp = resultFilename(filename, temp_directory, ".res");
|
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
|
* 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)
|
if (doc == NULL)
|
||||||
return(1);
|
return(1);
|
||||||
xmlSaveFile(temp, doc);
|
xmlSaveFile(temp, doc);
|
||||||
|
Loading…
Reference in New Issue
Block a user