1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-12 16:58:16 +03:00

2715 Commits

Author SHA1 Message Date
Kasimier T. Buchcik
c306d904c6 Added c-props-correct constraint to check for equal cardinality of
* xmlschemas.c: Added c-props-correct constraint to check
  for equal cardinality of keyref/key.
* include/libxml/xmlerror.h: Added an error code.
2005-07-08 21:37:44 +00:00
Kasimier T. Buchcik
8798b735a6 Fixed evaluation of attributes. Actually only attribute at the first level
* pattern.c: Fixed evaluation of attributes. Actually only
  attribute at the first level were evaluated (e.g. "@attr");
  expression like "foo/@attr" always failed.
2005-07-08 19:58:37 +00:00
Kasimier T. Buchcik
85aed6d010 tiny fix in xmlSchemaValidateStream() if a user-provided SAX handler is
* xmlschemas.c: tiny fix in xmlSchemaValidateStream() if a
  user-provided SAX handler is given.
2005-07-08 18:06:18 +00:00
Daniel Veillard
f0af8ec616 fix some potential leaks in error cases. added --sax, to allow testing of
* parser.c: fix some potential leaks in error cases.
* xmllint.c: added --sax, to allow testing of --schemas --sax and
  various other combinations.
* xmlschemas.c: fix a couple of tiny problems in
  xmlSchemaValidateStream()
Daniel
2005-07-08 17:27:33 +00:00
Kasimier T. Buchcik
72d3adc42f Changed xmlSchemaValidateFile() to use xmlSchemaValidateStream()
* xmlschemas.c: Changed xmlSchemaValidateFile() to use
  xmlSchemaValidateStream() internally.
2005-07-08 16:43:37 +00:00
Daniel Veillard
cdc82737e2 added the missing entity to the document internal subset to avoid errors
* test/relaxng/docbook_0.xml: added the missing entity to the
  document internal subset to avoid errors if the DocBook catalogs
  are not there
* xmlschemas.c: first cut at implementing xmlSchemaValidateStream()
  untested yet
Daniel
2005-07-08 15:04:06 +00:00
William M. Brack
f810de0436 fixed problem with free on dupl attribute in dtd (bug309637). added
* parser.c: fixed problem with free on dupl attribute in
  dtd (bug309637).
* test/errors/attr3.xml, result/errors/attr3.*: added
  regression test for this
2005-07-06 22:48:41 +00:00
William M. Brack
d37988ac06 try again to fix file format for Windows
* win32/Makefile.msvc: try again to fix file format for Windows
2005-07-06 20:12:11 +00:00
William M. Brack
fa8d5d962e removed spurious ^M added check for option O_BINARY changed sticky tag to
* win32/Makefile.msvc: removed spurious ^M
* runtest.c: added check for option O_BINARY
* test/schemas/bug309338*, result/schemas/bug309338*: changed
  sticky tag to 'binary'
2005-07-06 19:44:03 +00:00
William M. Brack
0357a308b8 excluded content string check for XML_ELEMENT_DECL in
* debugXML.c: excluded content string check for XML_ELEMENT_DECL
  in xmlCtxtGenericNodeCheck
* runtest.c: changed "open" calls to include O_BINARY for Windows
2005-07-06 17:39:14 +00:00
Daniel Veillard
abac41e829 fixing bug #166777 (and #169838), it was an heuristic in areBlanks which
* parser.c: fixing bug #166777 (and #169838), it was an heuristic
  in areBlanks which failed.
* result/winblanks.xml* result/noent/winblanks.xml test/winblanks.xml:
  added the input file to the regression tests
Daniel
2005-07-06 15:17:38 +00:00
Kasimier T. Buchcik
6d30ff2c08 Fixed bug #309338, reported by Kupriyanov Anotolij. Added a regression
* xmlschemastypes.c: Fixed bug #309338, reported by Kupriyanov
  Anotolij.
* test/schemas/bug309338* result/schemas/bug309338*:
  Added a regression test for the above bug.
2005-07-06 11:44:51 +00:00
Daniel Veillard
87b3046bc1 first steps toward a testsuite dist fixed bug #307870 Daniel
* Makefile.am: first steps toward a testsuite dist
* SAX2.c include/libxml/xmlerror.h: fixed bug #307870
Daniel
2005-07-05 14:04:36 +00:00
Kasimier T. Buchcik
87db1cf6d1 Tiny portability adjustment for win. Added runtest.exe and runsuite.exe to
* runsuite.c runtest.c: Tiny portability adjustment for win.
* win32/Makefile.*: Added runtest.exe and runsuite.exe to
  be created.
2005-07-05 10:40:52 +00:00
Daniel Veillard
9083778967 first stb at unimplemnted detection fixing Windows code Daniel
* runsuite.c: first stb at unimplemnted detection
* runtest.c: fixing Windows code
Daniel
2005-07-04 15:45:10 +00:00
Daniel Veillard
4ac5f9af14 fix on schemas error portability glob() on Windows Daniel
* runsuite.c: fix on schemas error
* runtest.c: portability glob() on Windows
Daniel
2005-07-04 15:20:27 +00:00
Daniel Veillard
c935253fb7 cleanups, logfile and portability fixed a memory leak Daniel
* runsuite.c runtest.c: cleanups, logfile and portability
* xmllint.c: fixed a memory leak
Daniel
2005-07-04 14:25:34 +00:00
Daniel Veillard
3fa5e7e44c fixed a bug failing to detect UTF-8 violations in CData in push mode.
* parser.c: fixed a bug failing to detect UTF-8 violations in
  CData in push mode.
* result/errors/cdata.xml* test/errors/cdata.xml: added the test
  to the regressions
Daniel
2005-07-04 11:12:25 +00:00
Daniel Veillard
20887eef62 added enhancement for #309057 in xmllint shell Daniel
* debugXML.c: added enhancement for #309057 in xmllint shell
Daniel
2005-07-04 09:27:40 +00:00
Daniel Veillard
597f1c1f34 applied patch from James Bursa fixing an html parsing bug in push mode
* HTMLparser.c: applied patch from James Bursa fixing an html parsing
  bug in push mode
* result/HTML/repeat.html* test/HTML/repeat.html: added the test to the
  regression suite
Daniel
2005-07-03 23:00:18 +00:00
Daniel Veillard
39e5c89016 fixing a leak detected by testapi in xmlDOMWrapAdoptNode, and fixing
* testapi.c tree.c: fixing a leak detected by testapi in
  xmlDOMWrapAdoptNode, and fixing another side effect in testapi
  seems to pass tests fine now.
* include/libxml/parser.h parser.c: xmlStopParser() is no more limited
  to push mode
* error.c: remove a warning
* runtest.c xmllint.c: avoid compilation errors if only some parts
  of the library are compiled in.
Daniel
2005-07-03 22:48:50 +00:00
Daniel Veillard
7e33dbaa0e fix a problem with previous patch to testapi.c Daniel
* gentest.py testapi.c: fix a problem with previous patch to
  testapi.c
Daniel
2005-07-03 22:40:26 +00:00
Daniel Veillard
7e21fd108c fixing a leak detected by testapi in xmlDOMWrapAdoptNode, and fixing
* testapi.c tree.c: fixing a leak detected by testapi in
  xmlDOMWrapAdoptNode, and fixing another side effect in testapi
  seems to pass tests fine now.
Daniel
2005-07-03 21:44:07 +00:00
Daniel Veillard
6b6d680901 fixing compilations when disabling parts of the library at configure time.
* runsuite.c runtest.c tree.c: fixing compilations when
  disabling parts of the library at configure time.
Daniel
2005-07-03 21:00:34 +00:00
Daniel Veillard
304e78c6b4 fix bug raised by zamez on IRC regenerated, seems to pop-up leaks in new
* parserInternals.c: fix bug raised by zamez on IRC
* testapi.c: regenerated, seems to pop-up leaks in new tree functions
* tree.c: added comments missing.
* doc/*: regenerated
Daniel
2005-07-03 16:19:41 +00:00
Daniel Veillard
95175012ec fixing #307823 and a couple of assorted bugs fixed conditionals in
* testapi.c runsuite.c runtest.c: fixing #307823 and a couple of
  assorted bugs
* python/generator.py python/libxml2-python-api.xml: fixed
  conditionals in generator too
* doc/apibuild.py doc/libxml2-api.xml doc/* elfgcchack.h: some
  cleanups too and rebuilt
Daniel
2005-07-03 16:09:51 +00:00
Daniel Veillard
8fcd2cacd3 fixed bug #307503 misplaced #ifdef Daniel
* xmlIO.c: fixed bug #307503 misplaced #ifdef
Daniel
2005-07-03 14:42:56 +00:00
Daniel Veillard
de0e498b42 expanded test found and fixed the leak exposed by Microsoft regtests
* runsuite.c: expanded test
* xmlregexp.c: found and fixed the leak exposed by Microsoft regtests
Daniel
2005-07-03 14:35:44 +00:00
Daniel Veillard
3fe1e8a115 a bit of progresses on xstc Daniel
* runsuite.c: a bit of progresses on xstc
Daniel
2005-07-02 21:39:06 +00:00
Daniel Veillard
e84f231ea0 completed the simple checks for Relax-NG suites back to the same 11 errors
* runsuite.c: completed the simple checks for Relax-NG suites
  back to the same 11 errors as in the Python runs.
Daniel
2005-07-02 07:31:28 +00:00
Daniel Veillard
f2e066ac2a complete, checking on other platforms is needed updated fix a bug raised
* runtest.c: complete, checking on other platforms is needed
* README: updated
* debugXML.c: fix a bug raised by bill on IRC
* relaxng.c: fix a leak in weird circumstances
* runsuite.c Makefile.am: standalone test tool agaisnt
  the regression suites, work in progress
Daniel
2005-06-30 13:04:44 +00:00
Daniel Veillard
3056404d75 adding URI tests Daniel
* runtest.c: adding URI tests
Daniel
2005-06-28 07:30:41 +00:00
Daniel Veillard
48dec9d3e5 adding xml:id Daniel
* runtest.c: adding xml:id
Daniel
2005-06-27 22:56:11 +00:00
Daniel Veillard
54a203c12a finishing XPath, adding XPointer Daniel
* runtest.c: finishing XPath, adding XPointer
Daniel
2005-06-27 22:29:56 +00:00
Daniel Veillard
970adf5d0c adding more coverage, XInclude and starting XPath Daniel
* runtest.c: adding more coverage, XInclude and starting XPath
Daniel
2005-06-27 16:40:10 +00:00
Kasimier T. Buchcik
4d9c948fd7 Added allocation/deallocation functions for the DOM-wrapper context.
* tree.c include/libxml/tree.h: Added allocation/deallocation
  functions for the DOM-wrapper context.
2005-06-27 15:04:46 +00:00
Kasimier T. Buchcik
017264fe4a Commented the new functions to be experimental.
* tree.c: Commented the new functions to be experimental.
2005-06-27 13:45:24 +00:00
Daniel Veillard
dbee0f1989 working some weird error reporting problem for DTD validation. augmented
* error.c valid.c: working some weird error reporting problem for
  DTD validation.
* runtest.c: augmented with DTD validation tests
* result/VC/OneID*: slight change in validation output.
Daniel
2005-06-27 13:42:57 +00:00
Daniel Veillard
fc319af531 added most HTML tests Daniel
* runtest.c: added most HTML tests
Daniel
2005-06-27 12:44:55 +00:00
Kasimier T. Buchcik
44555f060d Added initial tests for some new DOM-wrapper helping functions.
* test/namespaces/reconcile/tests.xml
  test/namespaces/reconcile/tests-to-c.xsl: Added initial tests
  for some new DOM-wrapper helping functions.
2005-06-27 12:09:02 +00:00
Kasimier T. Buchcik
cbddfe87a5 Cleanup. Removed, those are not needed anymore due to the new test suite.
* xstc/xstc-to-python.xsl: Cleanup.
* xstc/sun-test-def.xml xstc/nist-test-def.xml xstc/ms-test-def.xml:
  Removed, those are not needed anymore due to the new test suite.
2005-06-27 12:03:41 +00:00
Daniel Veillard
4a5a964c66 added SAXv2 regression tests apparently missing. added SAX1/SAX2 checks.
* result/*.sax2 MAkefile.am: added SAXv2 regression tests apparently
  missing.
* runtest.c: added SAX1/SAX2 checks.
Daniel
2005-06-27 10:40:55 +00:00
Kasimier T. Buchcik
bc0e3c6b1a Added xmlDOMWrapReconcileNamespaces(), xmlDOMWrapAdoptNode() and
* tree.c include/libxml/tree.h: Added
  xmlDOMWrapReconcileNamespaces(), xmlDOMWrapAdoptNode() and
  xmlDOMWrapRemoveNode() to the API. These are functions intended
  to be used with DOM-wrappers.
2005-06-27 10:28:23 +00:00
Daniel Veillard
c950d70998 continue to increase the tests Daniel
* runtest.c: continue to increase the tests
Daniel
2005-06-27 09:15:06 +00:00
Daniel Veillard
c111c15390 continue to increase the tests Daniel
* runtest.c: continue to increase the tests
Daniel
2005-06-27 08:22:10 +00:00
Daniel Veillard
fd110d29cc continue to increase the tests Daniel
* runtest.c: continue to increase the tests
Daniel
2005-06-27 00:02:02 +00:00
Daniel Veillard
1b75c3bd69 avoid name glob in agruments as it matches the glob() routine. first steps
* include/libxml/valid.h valid.c: avoid name glob in agruments as
  it matches the glob() routine.
* runtest.c Makefile.am: first steps toward a C regression test
  framework.
Daniel
2005-06-26 21:49:08 +00:00
William M. Brack
7d8b36bcf5 fixed a problem with the detection of ss_family for ipV6, as reported on
* configure.in: fixed a problem with the detection of
  ss_family for ipV6, as reported on the mailing list by
  Doug Orleans.
2005-06-25 07:30:50 +00:00
Kasimier T. Buchcik
21edf9b42c Added regression tests (from Dhyanesh).
* test/schemas/empty-value* result/schemas/empty-value*:
  Added regression tests (from Dhyanesh).
2005-06-21 08:46:25 +00:00
Kasimier T. Buchcik
9c215eb384 Fixed NULL values to be validated as empty string values (reported by
* xmlschemas.c: Fixed NULL values to be validated as empty
  string values (reported by Dhyanesh to the mailing list).
  Adjusted text concatenation of mixed content.
2005-06-21 08:38:49 +00:00