From adaa45aa25132502027e8711ef67c8e1f929f84a Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Tue, 30 Aug 2022 04:03:56 +0200 Subject: [PATCH] Fix EXSLT functions tests when libxml2 is built --without-debug --- libexslt/functions.c | 3 --- tests/general/bug-215.err | 3 --- 2 files changed, 6 deletions(-) diff --git a/libexslt/functions.c b/libexslt/functions.c index 958bf60e..643ee202 100644 --- a/libexslt/functions.c +++ b/libexslt/functions.c @@ -466,9 +466,6 @@ exsltFuncFunctionFunction (xmlXPathParserContextPtr ctxt, int nargs) { * the generation of result nodes. */ if (fake->children != NULL) { -#ifdef LIBXML_DEBUG_ENABLED - xmlDebugDumpNode (stderr, fake, 1); -#endif xsltGenericError(xsltGenericErrorContext, "{%s}%s: cannot write to result tree while " "executing a function\n", diff --git a/tests/general/bug-215.err b/tests/general/bug-215.err index 86556144..3d8dc184 100644 --- a/tests/general/bug-215.err +++ b/tests/general/bug-215.err @@ -1,6 +1,3 @@ - ELEMENT fake -element fake: error : Node has no parent - ELEMENT elem {DEF}f: cannot write to result tree while executing a function XPath error : Stack usage error runtime error: file ./bug-215.xsl line 5 element variable