[libxslt] tests: Fix source directory for reports tests



commit 367b929460da4db8fcb39722e7c686f4fd92b059
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Wed Sep 7 16:08:59 2022 +0200

    tests: Fix source directory for reports tests

 tests/reports/Makefile.am      | 2 +-
 tests/reports/recglobparam.err | 6 +++---
 tests/reports/recglobvar.err   | 6 +++---
 tests/reports/reclocparam.err  | 6 +++---
 tests/reports/reclocvar.err    | 6 +++---
 tests/reports/tst-2.err        | 4 ++--
 tests/reports/undefvar.err     | 7 +++----
 7 files changed, 18 insertions(+), 19 deletions(-)
---
diff --git a/tests/reports/Makefile.am b/tests/reports/Makefile.am
index a017afd0..aa79b4ad 100644
--- a/tests/reports/Makefile.am
+++ b/tests/reports/Makefile.am
@@ -20,7 +20,7 @@ valgrind:
 test tests: $(top_builddir)/xsltproc/xsltproc
        @echo '## Running reports tests'
        @(echo > .memdump)
-       -@(for i in $(srcdir)/../docs/*.xml ; do \
+       -@(for i in $(srcdir)/*.xml ; do \
          if [ -d $$i ] ; then continue ; fi ; \
          doc=`basename $$i .xml` ; \
          for j in $(srcdir)/$$doc*.xsl ; do \
diff --git a/tests/reports/recglobparam.err b/tests/reports/recglobparam.err
index 6bb87705..8486a5f2 100644
--- a/tests/reports/recglobparam.err
+++ b/tests/reports/recglobparam.err
@@ -1,8 +1,8 @@
 runtime error: file ./recglobparam.xsl line 4 element param
 Recursive definition of ok
 runtime error: file ./recglobparam.xsl line 4 element value-of
-unregistered variable ok
-xmlXPathCompiledEval: evaluation failed
+Variable 'ok' has not been declared.
+XPath error : Undefined variable
 runtime error: file ./recglobparam.xsl line 4 element value-of
-xsltValueOf: text copy failed
+XPath evaluation returned no result.
 no result for ./recglobparam.xml
diff --git a/tests/reports/recglobvar.err b/tests/reports/recglobvar.err
index 1755e974..171c94cb 100644
--- a/tests/reports/recglobvar.err
+++ b/tests/reports/recglobvar.err
@@ -1,8 +1,8 @@
 runtime error: file ./recglobvar.xsl line 4 element variable
 Recursive definition of ok
 runtime error: file ./recglobvar.xsl line 4 element value-of
-unregistered variable ok
-xmlXPathCompiledEval: evaluation failed
+Variable 'ok' has not been declared.
+XPath error : Undefined variable
 runtime error: file ./recglobvar.xsl line 4 element value-of
-xsltValueOf: text copy failed
+XPath evaluation returned no result.
 no result for ./recglobvar.xml
diff --git a/tests/reports/reclocparam.err b/tests/reports/reclocparam.err
index 90eea964..9f6b1e93 100644
--- a/tests/reports/reclocparam.err
+++ b/tests/reports/reclocparam.err
@@ -1,6 +1,6 @@
 runtime error: file ./reclocparam.xsl line 5 element value-of
-unregistered variable ok
-xmlXPathCompiledEval: evaluation failed
+Variable 'ok' has not been declared.
+XPath error : Undefined variable
 runtime error: file ./reclocparam.xsl line 5 element value-of
-xsltValueOf: text copy failed
+XPath evaluation returned no result.
 no result for ./reclocparam.xml
diff --git a/tests/reports/reclocvar.err b/tests/reports/reclocvar.err
index a02ccedf..b4d70c3f 100644
--- a/tests/reports/reclocvar.err
+++ b/tests/reports/reclocvar.err
@@ -1,6 +1,6 @@
 runtime error: file ./reclocvar.xsl line 5 element value-of
-unregistered variable ok
-xmlXPathCompiledEval: evaluation failed
+Variable 'ok' has not been declared.
+XPath error : Undefined variable
 runtime error: file ./reclocvar.xsl line 5 element value-of
-xsltValueOf: text copy failed
+XPath evaluation returned no result.
 no result for ./reclocvar.xml
diff --git a/tests/reports/tst-2.err b/tests/reports/tst-2.err
index d144c491..df8000e9 100644
--- a/tests/reports/tst-2.err
+++ b/tests/reports/tst-2.err
@@ -1,5 +1,5 @@
-compilation error: file ./tst-2.xsl line 2 element text
-misplaced text element: '
+compilation error: file ./tst-2.xsl line 6 element text
+misplaced text node: '
 
 a not allowed top level element
 
diff --git a/tests/reports/undefvar.err b/tests/reports/undefvar.err
index b18045ce..7395f26f 100644
--- a/tests/reports/undefvar.err
+++ b/tests/reports/undefvar.err
@@ -1,7 +1,6 @@
 runtime error: file ./undefvar.xsl line 6 element value-of
-unregistered variable one
-xmlXPathCompOpEval: parameter error
-xmlXPathCompiledEval: 1 object left on the stack
+Variable 'one' has not been declared.
+XPath error : Undefined variable
 runtime error: file ./undefvar.xsl line 6 element value-of
-xsltValueOf: text copy failed
+XPath evaluation returned no result.
 no result for ./undefvar.xml


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