Re: [xml] Test failures with 2.6.10 on Solaris 9/SPARC



On Sun, Jul 04, 2004 at 06:27:49PM +0800, William M. Brack wrote:
Albert Chin said:
$ gmake check
<snip>

## XPointer regression tests
## XInclude regression tests
docids.xml result
1,19d0 < <?xml version="1.0"?> < <!DOCTYPE book [ < <!ELEMENT book
(doc)*> < <!ELEMENT doc (isid)*> < <!ELEMENT isid EMPTY> < <!ATTLIST
isid myid ID #IMPLIED> < ]> < <book> < <doc> < <isid myid="mine"/> <
<isid myid="dup"/> < </doc> < <!-- including another XML document
with IDs --> < <doc xml:base="test/XInclude/ents/ids.xml"> < <isid
myid="dup"/> < <isid myid="foo"/> < <isid myid="bar"/> < </doc> <
</book>
<snip>

Not having a Sun system available to me for testing, it's a little
difficult to guess what's going wrong.  The message (as well as all
the following ones) is saying that the output produced differs from
the expected; the "1,19d0" is the 'diff' output, saying that lines 1
through 19 of the expected result were not produced by the test run.
 For this test, the script (Makefile) is running the newly-compiled
xmllint program with the "--xinclude" flag.

Could you please try running it "manually" and let me know what
happens, i.e. from /opt/build/libxml2-2.6.10 run:

  ./xmllint --xinclude test/XInclude/docs/docids.xml

Any further information which you can supply would be appreciated.

The patch below fixes it. Don't know why. However, this should be a
safe change as you already redirect stdout so grep really has nothing
to operate on.

This leaves one failure:
  $ ./testSchemas ./test/schemas/date_0.xsd ./test/schemas/date_0.xml
  ./test/schemas/date_0.xml:23: element monthday1: Schemas validity error : Element monthday1: failed to 
validate basic type gMonthDay
  ./test/schemas/date_0.xml:24: element dt2: Schemas validity error : Failed to validate basic type dateTime
  ./test/schemas/date_0.xml fails to validate

-- 
albert chin (china thewrittenword com)

-- snip snip
--- Makefile.am.orig    2004-07-01 10:50:59.182977000 -0500
+++ Makefile.am 2004-07-05 00:05:12.890918000 -0500
@@ -469,7 +469,7 @@
              $(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude $$i > 
$(srcdir)/result/XInclude/$$name 2> $(srcdir)/result/XInclude/$$name.err ; \
              grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
          else \
-             log=`$(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude $$i > result.$$name 
2>error.$$name | grep -v 'failed to load external entity' ; \
+             log=`$(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude $$i > result.$$name 
2>error.$$name ; \
              grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
              diff $(srcdir)/result/XInclude/$$name result.$$name ; \
              diff $(srcdir)/result/XInclude/$$name.err error.$$name` ; \
@@ -486,7 +486,7 @@
              $(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude --walker --debug $$i > 
$(srcdir)/result/XInclude/$$name.rdr ; \
              grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
          else \
-             log=`$(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude --stream --debug $$i > 
result.$$name 2>error.$$name | grep -v 'failed to load external entity' ; \
+             log=`$(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude --stream --debug $$i > 
result.$$name 2>error.$$name ; \
              grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
              diff $(srcdir)/result/XInclude/$$name.err error.$$name ; \
              diff $(srcdir)/result/XInclude/$$name.rdr result.$$name` ; \



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