Karl Waclawek
65fb6b9167
Applied patch #1437840 . Fix for bugs #1414066 and #1033965 .
2006-03-06 14:24:36 +00:00
Karl Waclawek
ba0482ed78
Adjusted to the new return type of XML_GetCurrentLineNumber
...
and XML_GetCurrentColumnNumber when XML_LARGE_SIZE is defined.
2005-12-28 06:06:11 +00:00
Steven Solie
0845031711
*** empty log message ***
2005-12-24 06:34:24 +00:00
Fred L. Drake, Jr.
a1391e586a
make all C strings ASCII (7-bits) to avoid editors from trying to
...
re-encode the source text incorrectly; we really want the input data to
be exactly what it should be
2005-01-28 05:41:56 +00:00
Fred L. Drake, Jr.
ee9719230c
remove use of the check library; always use our own testing package
...
(this reduces variables and simplifies the build process)
2005-01-27 06:27:57 +00:00
Fred L. Drake, Jr.
c82f512b97
update tests to reflect that a more specific error message is being generated
...
for some cases
2004-07-15 23:29:25 +00:00
Fred L. Drake, Jr.
1044e5b3e1
- avoid using the "check" library's suite_free() function; it is not
...
available in all versions of the library, and srunner_free() is
sufficient
(closes SF bug #985192 )
- avoid some compiler warnings
2004-07-15 22:54:19 +00:00
Fred L. Drake, Jr.
d1df594ca2
If the check library is not available, use an abbreviated implementation of
...
the check API. This allows the unit and regression tests to be run on any
system without requiring an external package.
2004-04-30 03:18:11 +00:00
Fred L. Drake, Jr.
0a0a850ae7
added regression test for SF bug #824420 :
...
in non-namespace mode, Expat reported the use of an unbound namespace
when encountering an element that looks like it has a namespace prefix
(were namespaces enabled) and there's a definition for that prefix in
the DTD
2003-11-02 08:12:46 +00:00
Fred L. Drake, Jr.
99609421a8
Make it possible to avoid the import of expat_config.h. This makes it
...
easier to compile Expat without the autoconf support.
This closes SF patch #458907 .
2003-10-16 04:51:11 +00:00
Fred L. Drake, Jr.
2bba3d20f5
Deal with issue discussed in SF patch #820946 : Expat doesn't handle
...
the use of modified default calling conventions in client code.
To deal with this issue and generally clean up the mass of macros
being used to support bits of the machinery, two new macros are being
added:
- XMLCALL, which expands to whatever is needed to nail down the
calling convention for all calls across the library boundary. This
must match the convention used for the system's malloc()
implementation.
- XMLIMPORT, defined to be whatever magic is needed to mark an entry
point as imported from a dynamically loaded module (.dll, .so, .sl,
whatever).
These macros are used to define the XMLPARSEAPI macro already being
used to define the API entry points. In addition, XMLCALL is used to
define the types of callback functions, and all example code uses this
explicitly in both the distributed applications and the documentation.
2003-10-15 16:25:44 +00:00
Greg Stein
c02e8784e7
Put in a little protection against the developer not having the check
...
package available.
sfbug #664541 .
* configure.in: look for check.h. This will set up a HAVE_CHECK_H define.
* tests/chardata.c, tests/runtests.c: update banner. add test for
HAVE_CHECK_H and bail if not present.
2003-10-09 21:32:28 +00:00
Fred L. Drake, Jr.
118ea18262
elaborated test case to cover SF bug #774028 ; current Expat already
...
handles this correctly
2003-08-27 12:34:23 +00:00
Fred L. Drake, Jr.
2ff7f92016
- be more specific about the errors we expect to see reported
...
- change the name of make_basic_suite() to make_suite(), since there's
only one make_*_suite() function
2003-03-12 19:25:03 +00:00
Fred L. Drake, Jr.
72ba3bd3d8
Add regression tests for SF bugs:
...
#692964 - Case where expat 1.95.6 doesn't report duplicate attributes
#695401 - Unbound prefixes not rejected
2003-03-12 19:17:18 +00:00
Fred L. Drake, Jr.
db8a501c0d
- two more tests based on Karl's comments on SF patch #673791
...
- pass XML_TRUE or XML_FALSE as the isFinal parameter for XML_Parse()
2003-01-28 05:33:37 +00:00
Fred L. Drake, Jr.
f85926afd5
Added regression tests for SF bug #673791 .
2003-01-25 06:55:25 +00:00
Fred L. Drake, Jr.
7fd8181a4a
Thread the proper file name and line number to make determination of
...
which test is failing easier.
2003-01-25 04:57:44 +00:00
Fred L. Drake, Jr.
5d55922080
- _expect_failure(): Use _fail_unless() instead of fail() to allow
...
reporting of the right line number
- add test that demonstrates the default namespace can be reset
without a syntax error
2003-01-24 05:39:16 +00:00
Fred L. Drake, Jr.
4273b16711
Add a test that makes sure xmlns:prefix="" is allowed when namespace
...
processing is not enabled.
2003-01-24 05:09:42 +00:00
Fred L. Drake, Jr.
b2e6a40fbb
Fix test case regarding reporting of undefined entities and
...
non-validating parsers (see section 5.1 of the XML 1.0 specification).
2003-01-21 05:41:24 +00:00
Fred L. Drake, Jr.
37be32f63f
Minor cleanups and conformance with current recommended usage.
2003-01-20 14:49:44 +00:00
Fred L. Drake, Jr.
42dc47850e
Oops, there were more regression tests for SF bug #653180 ; add these
...
as well.
2002-12-30 19:33:21 +00:00
Fred L. Drake, Jr.
d9b09dd45e
Added regression tests from bug; Karl already fixed the bug itself.
...
Closes SF bug #653180 .
Removed test that failed to tickle the bug, but should have.
2002-12-30 19:20:39 +00:00
Fred L. Drake, Jr.
843c5c4f5c
Added regression test for SF bug #483514 : Default handler reports
...
handled events.
2002-11-12 20:26:05 +00:00
Fred L. Drake, Jr.
1e4bab1724
Added regression test for SF bug #620106 : XML_SetEncoding() broken
...
for external entities.
2002-11-12 19:22:49 +00:00
Fred L. Drake, Jr.
a515b7b01c
Added regression test for SF bug #616863 .
...
Cleaned up some indentation.
Report the version of the Expat library if not in "silent" mode.
2002-11-07 23:02:26 +00:00
Fred L. Drake, Jr.
f4befc31c3
SF bug #620343 : segfault: bad API/callback interaction
...
The start-namespace-decl callback can set the start-element callback to
NULL, but Expat tried to call it anyway.
2002-10-08 17:04:55 +00:00
Fred L. Drake, Jr.
8ebc3a260e
New test: demonstrate segfault in epilogProcessor(). Karl has a fix
...
for this that he'll check in shortly.
2002-08-30 22:05:55 +00:00
Fred L. Drake, Jr.
1330c4c02f
Added regression test.
...
Closes SF bug #600479 .
2002-08-27 17:06:19 +00:00
Fred L. Drake, Jr.
a37a37af7f
Add test for well-formedness constraint: No Recursion.
2002-08-24 19:53:59 +00:00
Fred L. Drake, Jr.
705efa1f25
Add a test that we do report an undefined entity if there is an
...
external subset and we load it.
2002-08-23 19:45:44 +00:00
Fred L. Drake, Jr.
93a409f6f6
Factor out some error reporting code used when the parser is expected
...
to report an error, and either doesn't report an error at all or
reports the wrong error.
2002-08-23 03:35:40 +00:00
Fred L. Drake, Jr.
80cac4a780
Renamed the last test added to be more clear about the condition being
...
tested.
Added a couple of additional tests checking for proper response to the
same well-formedness constraint. No bugs to fix there, just trying to
improve the coverage of the test suite.
2002-08-23 03:14:01 +00:00
Fred L. Drake, Jr.
803bc07fa7
Add a test case for the improper reporting of a failure of the "Entity
...
Declared" WFC fixed in lib/xmlparse.c 1.65.
2002-08-22 21:41:05 +00:00
Fred L. Drake, Jr.
e573251a94
Define specific return values for the XML_Parse*() functions, and use them
...
to test all XML_Parse*() return values in the test and sample code.
This is binary-compatible with previous Expat 1.95.x releases.
2002-08-02 19:40:09 +00:00
Fred L. Drake, Jr.
3167cb2a06
Remove cruftiness.
2002-07-24 01:20:18 +00:00
Fred L. Drake, Jr.
83271c5dbf
make_basic_suite(): Simplify the organization of the test cases into
...
just two groups: "basic" (no namespaces) and "namespace".
Rename one test function so it's name makes more sense, and is
shorter.
2002-07-22 17:49:17 +00:00
Fred L. Drake, Jr.
632b20c24f
Added regression test for SF bug #584832 , adapted from contributed
...
test.
2002-07-22 17:15:48 +00:00
Fred L. Drake, Jr.
098497fb5f
Add a test for SF bug #478332 .
...
If I understand the report correctly, I can't reproduce the bug using
the CVS version of Expat.
2002-07-09 21:17:45 +00:00
Fred L. Drake, Jr.
4582daec8f
Fix SF bug #575168 : "Missing events for end-element".
2002-06-28 23:04:49 +00:00
Fred L. Drake, Jr.
7f509f86ef
Add regression tests for SF bug #566334 :
...
"Default namespace => wrong element names"
2002-06-28 14:20:07 +00:00
Fred L. Drake, Jr.
c74d7bca16
Add a regression test that might tickle SF bug #422239 . See comments
...
for more information.
2002-06-28 13:35:44 +00:00
Fred L. Drake, Jr.
6f4869b2a4
Share the comment style with the rest of Expat.
2002-05-22 20:22:25 +00:00
Fred L. Drake, Jr.
6197055826
Fix the regression test for SF bug #477667 . This now fails, but accurately
...
tests the reported bug.
It should also serve as increased motivation for me to get it fixed
before the next release.
2002-05-22 03:27:17 +00:00
Fred L. Drake, Jr.
7ed4ac9d81
xml_failure(): Pass the relevant XML_Parser into the function so it is
...
useful when parsing external entities as well as the document entity.
All callers have been updated.
2002-05-04 21:47:46 +00:00
Fred L. Drake, Jr.
198ab270fe
Revise the data accumulation to be at least a little separated from the
...
actual test code. Not pretty & lacking in internal documentation, but
allows the test code to be a bit more readable.
2002-04-25 04:04:42 +00:00
Fred L. Drake, Jr.
d701da0bd5
Make the organization slightly easier to discern.
2002-04-25 01:42:34 +00:00
Fred L. Drake, Jr.
a1451f8ae7
Take advantage of XML_ParserReset(): Instead of creating new parsers in
...
run_*_check(), reset the parser between uses in the one place its actually
needed.
2002-04-24 03:48:03 +00:00
Fred L. Drake, Jr.
d2baa2aec2
Add a new test that demonstrates SF bug #481609 is invalid.
2002-04-22 18:50:18 +00:00