[libxslt] Fix EXSLT functions tests when libxml2 is built --without-debug



commit adaa45aa25132502027e8711ef67c8e1f929f84a
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Tue Aug 30 04:03:56 2022 +0200

    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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]