Sebastian Pipping
5f9bc4836f
Prepare release version 2.2.5 ( #133 )
2017-10-31 17:20:31 +01:00
Sebastian Pipping
535047b10c
Tests: Fix CPPFLAGS=-DNDEBUG ourselves ( #160 )
2017-10-24 21:41:18 +02:00
Sebastian Pipping
f75a40cbae
xmlwf|tests: Repeat L string prefix to fix compilation
2017-10-04 22:55:42 +02:00
Sebastian Pipping
3240718240
Fix test suite for --disable-xml-context ( #146 )
...
Regression from bc6468d230
2017-09-11 15:29:57 +02:00
Sebastian Pipping
4bad01f941
udiffer.py: Ship with tarballs
2017-09-09 19:20:40 +02:00
Sebastian Pipping
9f166f82e8
runtests.c: Fix compilation for undefined XML_CONTEXT_BYTES
...
Regression from 70d19d635a
Compile error was:
runtests.c: In function ‘byte_character_handler’:
runtests.c:4195:11: error: ‘s’ undeclared (first use in this function)
(void)s;
2017-09-09 19:13:21 +02:00
Sebastian Pipping
3efafceb60
udiffer.py: Improve overall structure
2017-09-09 18:21:18 +02:00
Sebastian Pipping
7c0f6d71cc
udiffer.py: Extract function to resolve code duplication
2017-09-09 18:21:18 +02:00
Sebastian Pipping
7f768b5068
udiffer.py: Add license header
2017-09-09 18:21:18 +02:00
Rhodri James
fec399291e
Make xmltest.sh script work for UTF-16 builds
2017-09-09 18:21:18 +02:00
Rhodri James
df8c75ee26
Add test for issue #137 : stopping parse doesn't always return an error
...
This catches the case of stopping the parse on a single empty tag.
There may be other cases where the parse status isn't checked properly.
2017-09-02 22:18:53 +02:00
Sebastian Pipping
5c6c28cf40
Streamline preprocessor indentation
2017-08-29 23:21:52 +02:00
Rhodri James
50c355729c
Split long string in test_nsalloc_realloc_long_context_in_dtd()
...
C99 only requires compilers to handle string literals up to 4095
characters long. Split the parse string so that it is below this
limit.
2017-08-29 23:21:52 +02:00
Rhodri James
533b45f94c
Split long string in test_nsalloc_long_namespace()
...
C99 compilers are only obliged to cope with 4095 character strings
literals. Split the parse string so that it is under this limit.
2017-08-29 23:21:52 +02:00
Rhodri James
b627e0e510
Split long string in test_ns_extremely_long_prefix()
...
C99 compilers are only required to cope with 4095 character strings.
Split the parse text in two to keep it under that limit.
2017-08-29 23:21:51 +02:00
Rhodri James
f7eb08ee80
Fix test_default_doctype_handler() to work in UTF-16 builds
2017-08-29 23:21:51 +02:00
Rhodri James
bd12cbc629
Remove CharData_{Append|Check}String functions
...
Mixing XML_Char and char strings is a bad idea, and trying to put
chars into an XML_Char array tends not to work as you might hope.
Removing these functions removes the temptation to break builds.
2017-08-29 23:21:51 +02:00
Rhodri James
e9aebf0a7f
Use correct format for XML_Char in error output
...
Only actually invoked when XML_Char is char, but it keeps the
compiler quiet
2017-08-29 23:19:35 +02:00
Rhodri James
a0fa0f80b8
Fix test_default_current() to work in UTF-16 builds
2017-08-29 23:19:35 +02:00
Rhodri James
0766d6c24c
Fix test_end_element_events() to work in UTF-16 builds
2017-08-29 23:19:35 +02:00
Rhodri James
234a974546
Fix test_line_and_column_numbers_inside_handlers() for UTF-16
...
Use structured data in the event handlers for this test to avoid
problems converting char strings to XML_Char strings.
2017-08-29 23:19:34 +02:00
Rhodri James
8b64146e21
Add support for structured data in test handlers
2017-08-29 23:19:34 +02:00
Rhodri James
38166e1f54
Fix test_alloc_realloc_nested_groups() to work in UTF-16 builds
2017-08-29 23:13:16 +02:00
Rhodri James
4f89cb88ac
Fix test_alloc_nested_groups() to work in UTF-16 builds
2017-08-29 23:13:16 +02:00
Rhodri James
881611c97e
Fix test_nsalloc_long_attr_prefix() to work in UTF-16
2017-08-29 23:13:16 +02:00
Rhodri James
826a0f791c
Fix test_nsalloc_prefixed_element() to work in UTF-16 builds
2017-08-29 23:13:16 +02:00
Rhodri James
ee626f7c80
Fix test_nsalloc_long_systemid_in_ext() to work in UTF-16 builds
2017-08-29 23:13:16 +02:00
Rhodri James
356e9d1c26
Fix test_nsalloc_long_default_in_ext() to work in UTF-16 builds
2017-08-29 23:13:15 +02:00
Rhodri James
77c89db91d
Fix test_nsalloc_realloc_long_context_in_dtd() to work in UTF-16
2017-08-29 23:13:15 +02:00
Rhodri James
51b90a3d54
Fix test_nsalloc_realloc_long_ge_name() to work in UTF-16 builds
2017-08-29 23:13:15 +02:00
Rhodri James
586dcbac54
Fix context_realloc_test() to work in UTF-16 builds
2017-08-29 23:13:15 +02:00
Rhodri James
f4f5413a6d
Fix test_nsalloc_long_context() to work in UTF-16 builds
2017-08-29 23:13:15 +02:00
Rhodri James
d8dd851ecb
Fix test_nsalloc_long_element() to work for UTF-16 builds
2017-08-29 23:13:15 +02:00
Rhodri James
3a1b4a1940
Fix test_alloc_long_notation() to work in UTF-16 builds
2017-08-29 23:13:15 +02:00
Rhodri James
29667dacba
Fix test_alloc_long_base() to work in UTF-16 builds
2017-08-29 23:13:15 +02:00
Rhodri James
0cba195e7c
Fix test_alloc_set_base() to work for UTF-16 builds
2017-08-29 23:13:15 +02:00
Rhodri James
b22dc0b44d
Fix test_alloc_dtd_default_handling() to work in UTF-16 builds
2017-08-29 23:13:15 +02:00
Rhodri James
84c40c5e61
Fix unknown_released_encoding_handler() to work in UTF-16 builds
2017-08-29 23:13:15 +02:00
Rhodri James
de15bfd1dc
Fix test_misc_utf16le() to work in UTF-16 builds
2017-08-29 23:13:15 +02:00
Rhodri James
e1d864007a
Fix test_misc_attribute_leak() to work in UTF-16 builds
2017-08-29 23:13:15 +02:00
Rhodri James
60942737e2
Fix test_misc_version() for various XML_UNICODE issues.
2017-08-29 23:13:15 +02:00
Rhodri James
d2ba5ef545
Fix test_misc_alloc_create_parser_with_encoding() to work in UTF-16
2017-08-29 23:13:15 +02:00
Rhodri James
1f5814a9bf
Fix test_ns_utf16_doctype() to work in UTF-16 builds
2017-08-29 23:13:15 +02:00
Rhodri James
b96f6674c2
Fix test_ns_utf16_element_leafname() to work in UTF-16 builds
2017-08-29 23:13:15 +02:00
Rhodri James
dc5649b42b
Fix test_ns_utf16_leafname() to work for UTF-16 builds
2017-08-29 23:13:15 +02:00
Rhodri James
5042762639
Fix test_ns_unknown_encoding_success() to work in UTF-16 builds
2017-08-29 23:13:15 +02:00
Rhodri James
17fbf194f8
Fix test_ns_long_element() to work in UTF-16 builds
2017-08-29 23:13:15 +02:00
Rhodri James
d6639e21e4
Fix test_ns_prefix_with_empty_uri_4() to work in UTF-16 builds
2017-08-29 23:13:15 +02:00
Rhodri James
4711ef3140
Don't mix character types in namespace overwrite tests
2017-08-29 23:13:15 +02:00
Rhodri James
fdd120da85
Fix test_return_ns_triplet() to work in UTF-16 builds
2017-08-29 23:13:15 +02:00