| Index: third_party/libxml/src/runtest.c
|
| diff --git a/third_party/libxml/src/runtest.c b/third_party/libxml/src/runtest.c
|
| index bb74d2a82e2be682db4dc2bc0129362f4fbb90ee..18615773228b0cc85522d6cb8037f5598c92a8d4 100644
|
| --- a/third_party/libxml/src/runtest.c
|
| +++ b/third_party/libxml/src/runtest.c
|
| @@ -2317,10 +2317,19 @@ static FILE *xpathOutput;
|
| static xmlDocPtr xpathDocument;
|
|
|
| static void
|
| +ignoreGenericError(void *ctx ATTRIBUTE_UNUSED,
|
| + const char *msg ATTRIBUTE_UNUSED, ...) {
|
| +}
|
| +
|
| +static void
|
| testXPath(const char *str, int xptr, int expr) {
|
| + xmlGenericErrorFunc handler = ignoreGenericError;
|
| xmlXPathObjectPtr res;
|
| xmlXPathContextPtr ctxt;
|
|
|
| + /* Don't print generic errors to stderr. */
|
| + initGenericErrorDefaultFunc(&handler);
|
| +
|
| nb_tests++;
|
| #if defined(LIBXML_XPTR_ENABLED)
|
| if (xptr) {
|
| @@ -2349,6 +2358,9 @@ testXPath(const char *str, int xptr, int expr) {
|
| xmlXPathDebugDumpObject(xpathOutput, res, 0);
|
| xmlXPathFreeObject(res);
|
| xmlXPathFreeContext(ctxt);
|
| +
|
| + /* Reset generic error handler. */
|
| + initGenericErrorDefaultFunc(NULL);
|
| }
|
|
|
| /**
|
|
|