Rhodri James
3efdc8cab4
Fix test_ext_entity_latin1_utf16le_bom() to work in UTF-16 builds
2017-08-29 23:13:14 +02:00
Rhodri James
8f6c90dc72
Fix test_unknown_ascii_encoding_ok() to work in UTF-16 builds
2017-08-29 23:13:14 +02:00
Rhodri James
87742dee07
Fix test_unknown_encoding_long_name_2() to work in UTF-16 builds
2017-08-29 23:13:14 +02:00
Rhodri James
435ab90b4b
Fix test_unknown_encoding_long_name_1() to work for UTF-16
2017-08-29 23:13:14 +02:00
Rhodri James
850303a73b
Fix MiscEncodingHandler() to work in UTF-16 builds
2017-08-29 23:13:14 +02:00
Rhodri James
dd38e6207d
Fix up UTF-16 comment tests to work in UTF-16 builds
2017-08-29 23:13:14 +02:00
Rhodri James
127e33f8d5
Fix up accumulate_pi_characters() to work for UTF-16 builds
2017-08-29 23:13:14 +02:00
Rhodri James
432c39b746
Fix test_comment_handled_in_default() to work for UTF-16 builds
2017-08-29 23:13:14 +02:00
Rhodri James
1054ffe229
Fix test_pi_handled_in_default() to work in UTF-16 builds
2017-08-29 23:13:14 +02:00
Rhodri James
fc961e6e34
Fix test_param_entity_with_trailing_cr() to work for UTF-16 builds
2017-08-29 23:13:14 +02:00
Rhodri James
36dee6ce5a
Fix test_suspend_resume_parameter_entity() to work in UTF-16
2017-08-29 23:13:14 +02:00
Rhodri James
c1641bcc88
Fix test_suspend_resume_internal_entity() to work for UTF-16
2017-08-29 23:13:14 +02:00
Rhodri James
ec1c5c29a9
Fix start_element_suspender() to work for UTF-16 builds
2017-08-29 23:13:14 +02:00
Rhodri James
895f150166
Fix up selective_aborting_default_handler() for UTF-16 builds
2017-08-29 23:13:14 +02:00
Rhodri James
21ed018487
Fix external_entity_devaluer() to work for UTF-16 builds
2017-08-29 23:13:14 +02:00
Rhodri James
f51e70d019
Fix external_entity_public() to work for UTF-16 builds
2017-08-29 23:13:14 +02:00
Rhodri James
fe930e74ea
Fix test_nested_groups() to work with UTF-16
2017-08-29 23:13:14 +02:00
Rhodri James
7e726dc386
Fix record_element_start_handler() to use XML_Char correctly
2017-08-29 23:13:14 +02:00
Rhodri James
a6add43ad2
Fix test_predefined_entity_redefinition() to work for UTF-16
2017-08-29 23:13:14 +02:00
Rhodri James
907e4cc32b
Fix test_attribute_enum_value() to work for UTF-16 builds
2017-08-29 23:13:14 +02:00
Rhodri James
d024ce6e8f
Fix external_entity_value_aborter() to work for UTF-16 builds
2017-08-29 23:13:14 +02:00
Rhodri James
5d83ea1bcb
Fix external_entity_not_standalone() to work for UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
d23efea089
Fix external_entity_valuer() to work for UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
c9f258d842
Fix external_entity_param() to work for UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
2a08a268b6
Fix test_ignore_section_utf16_be() for UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
0c17e937fd
Fix test_ignore_section_utf16() for UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
7de6b0ce61
Fix test_ignore_section() to work correctly for UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
ace7e46246
Fix test_predefined_entities() to work correctly with UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
70d19d635a
Remove speculative test from byte_character_handler().
...
byte_character_handler() used to test that the string pointer `s`
passed to it was at the correct offset ino the input buffer. This
is not guaranteed to be the case, and definitely won't be the case
if the input encoding has a different minimum bytes-per-character
to the internal encoding.
2017-08-29 23:13:13 +02:00
Rhodri James
bd93a149d2
Fix external_entity_good_cdata_ascii() to work with UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
e18b2b398d
Fix rsqb_handler() to work correctly in UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
7de283270f
Fix cr_cdata_handler() to work correctly for UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
32f7f8b69f
Fix test_cdata_default() to work for UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
279e29a9d4
Fix test_attributes() to work for UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
285199b6d2
Fix counting_start_element_handler() to use XML_Char correctly
2017-08-29 23:13:13 +02:00
Rhodri James
4fe2c1a5e4
Fix test_set_base() to work for UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
093c5c9258
Fix test_multichar_cdata_utf16() to work for UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
7bc8663933
Fix test_long_cdata_utf16() to work for UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
18ccc4b65a
Fix test_good_cdata_utf16_le() to work for UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
cda42d84c9
Fix test_good_cdata_utf16() to work for UTF-16 builds (ironicly)
2017-08-29 23:13:13 +02:00
Rhodri James
4a8980afd5
Fix test_good_cdata_ascii() to work for UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
4ac42fcc89
Fix test_dtd_attr_handling() to work with UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
6129536b7d
Fix test_dtd_default_handling() to work for UTF-16
2017-08-29 23:13:13 +02:00
Rhodri James
388219c03a
Fix test_not_standalone_handler_accept() to work for UTF-16
2017-08-29 23:13:13 +02:00
Rhodri James
d550ca2dc5
Fix test_not_standalone_handler_accept() to work in UTF-16 builds
2017-08-29 23:13:13 +02:00
Rhodri James
c7abdc8536
Fix test_wfc_undeclared_entity_with_external_subset() for UTF-16
2017-08-29 23:13:13 +02:00
Rhodri James
e4ca396c1c
Fix test_ext_entity_set_bom() to work for UTF-16
2017-08-29 23:13:13 +02:00
Rhodri James
f0a5129bd4
Fix test_ext_entity_no_handler() to work for UTF-16
2017-08-29 23:13:13 +02:00
Rhodri James
d4e08e98ce
Fix test_ext_entity_set_encoding to work for UTF-16
2017-08-29 23:13:13 +02:00
Rhodri James
cea58e4172
Fix UnknownEncodingHandler to work with UTF-16
2017-08-29 23:13:13 +02:00
Rhodri James
dc2b79611e
Fix attribute whitespace normalization tests for UTF-16
2017-08-29 23:13:13 +02:00
Rhodri James
fd6e43f64a
Fix whitespace normalization tests for UTF-16
2017-08-29 23:13:13 +02:00
Rhodri James
c9c6a7bb27
Ensure encoding passed to XML_SetEncoding is always const XML_Char*
2017-08-29 23:13:13 +02:00
Rhodri James
f770d7abf7
Fix test_utf16() to work for UTF-16 builds
2017-08-29 22:30:33 +02:00
Rhodri James
61995637fd
Fix test_utf8_false_rejection() to work in UTF-16
2017-08-29 22:30:33 +02:00
Rhodri James
2d1020a2e4
Fix test_french_utf8() to work in UTF-16
2017-08-29 22:30:33 +02:00
Rhodri James
47ddbf3edc
Fix test_french_latin1() to work in UTF-16
2017-08-29 22:30:33 +02:00
Rhodri James
4d39fc0bfa
Fix test_french_charref_decimal() to work for UTF-16
2017-08-29 22:30:33 +02:00
Rhodri James
0731c0b8de
Fix test_french_charref_hexidecimal() to work for UTF-16
2017-08-29 22:30:33 +02:00
Rhodri James
c486259c69
Fix test_latin1_umlauts() to work for UTF-16
2017-08-29 22:30:33 +02:00
Rhodri James
87899c4ff1
Fix test_danish_latin1() to handle UTF-16
2017-08-29 22:30:32 +02:00
Rhodri James
1e11b39311
Add wrapper macro to give string literals the right type for XML_Char*
2017-08-29 22:30:32 +02:00
Rhodri James
0cf316f825
Ensure the _check functions take parse text as char not XML_Char
...
_run_character_check() et al pass their parse text to XML_Parse()
via _XML_Parse_SINGLE_BYTES(). Both of these expect the parse text
as "const char *", not "const XML_Char *".
2017-08-29 22:30:32 +02:00
Rhodri James
c64f7a6a65
Fix wide character issues in param_entity_match_handler()
2017-08-29 22:30:32 +02:00
Rhodri James
0a7631ae64
Add macros for XML_Char-based strncmp and strlen equivalents
2017-08-29 22:30:32 +02:00
Rhodri James
3bda331fff
Fix wide character comparisons in external_entity_optioner()
2017-08-29 22:30:32 +02:00
Rhodri James
f57d8914a0
Define and use macros for XML_Char and XML_Char* format strings
2017-08-29 22:30:32 +02:00
Sebastian Pipping
4767305c1a
benchmark: Indent preprocessor code
2017-08-26 17:18:10 +02:00
Rhodri James
bc775ae501
Fix benchmark to compile under XML_UNICODE_WCHAR_T
2017-08-26 17:17:21 +02:00
Sebastian Pipping
8711ee3054
Leave no doubt about align_limit_to_full_utf8_characters being internal
2017-08-23 17:41:17 +02:00
Jose
b4b89c2ab0
Fix compile error with Visual Studio 2012
...
The standard header stdbool.h is not available
with old Visual Studio compilers
2017-08-23 17:38:24 +02:00
Rhodri James
80e94383b1
Test for incorrectly suppressed default handler (issue #11 )
2017-08-23 00:36:20 +02:00
Rhodri James
e51d0d4d06
Update expected test log to match changes to xmlwf
2017-08-22 23:14:55 +02:00
Rhodri James
0da3d1b5bf
Add command-line arg "-N" to xmlwf to add notations to test output
...
...and use it in xmltest.sh
2017-08-22 22:21:10 +02:00
Sebastian Pipping
3bdb11fc86
Prepare release version 2.2.4 ( #123 )
2017-08-19 16:40:21 +02:00
Sebastian Pipping
a704c940a4
Inline copyright headers with C/C++ code where missing ( #116 )
2017-08-12 21:02:41 +02:00
Sebastian Pipping
5c3a01c1cc
Include file tests/xmltest.log.expected in source tarball ( #117 )
2017-08-12 19:10:43 +02:00
Sebastian Pipping
d4390f34f3
Replace handwritten Makefile with GNU Automake
2017-08-12 16:09:50 +02:00
Sebastian Pipping
5c01dc098f
Extend .gitignore
2017-08-11 23:25:00 +02:00
Joe Orton
d1f7f7bbd0
Fix tests for both x86 and non-x86. ( #109 )
2017-08-03 21:35:03 +02:00
Sebastian Pipping
7045b040ac
tests/minicheck.c: Improve error message display
2017-08-03 21:24:57 +02:00
Sebastian Pipping
97c6bd0199
Prepare release version 2.2.3
2017-08-02 15:40:48 +02:00
Sebastian Pipping
642ec44e7b
runtests.c: Catch some failure to bump XML_*_VERSION
2017-08-02 15:40:38 +02:00
Joe Orton
a5e20f5bc9
Expand buffer size to avoid GCC 7.x warning.
2017-08-02 08:49:20 +01:00
Rhodri James
d6bda1f97f
runtests.c: Turn #defines into consts ( #103 )
...
The loop limit of the various test_alloc_* and test_nsalloc_*
functions were given as #defined constanst. These have been turned
into const constants to give the compiler a better chance with them.
2017-07-29 13:56:44 +02:00
Sebastian Pipping
6a8267696c
Merge branch 'coverage-no-context' (pull request #102 )
2017-07-27 19:55:14 +02:00
Rhodri James
111bfd79b8
Use named constant for magic number in external_entity_dbl_handler
2017-07-27 15:02:31 +01:00
Rhodri James
a8a79811d7
Use named constant for magic number in external_entity_duff_loader
2017-07-27 14:48:41 +01:00
Rhodri James
f95017d540
Use named constant for magic number in test_..._parser_with_encoding()
2017-07-27 14:46:41 +01:00
Rhodri James
f1757d0269
Use named constant for magic number in test_misc_alloc_create_parser()
2017-07-27 14:45:42 +01:00
Rhodri James
a9332c0b45
Make test_alloc_long_notation() robust vs allocation pattern changes.
2017-07-27 14:39:32 +01:00
Rhodri James
d43cbb8b4c
Make test_alloc_long_entity_value() robust vs allocation changes
2017-07-27 14:30:52 +01:00
Rhodri James
9e8311f127
Make test_alloc_long_public_id() robust vs allocation pattern changes
2017-07-27 14:29:44 +01:00
Rhodri James
075aa7c179
Make test_alloc_long_base() robust vs allocation pattern changes
2017-07-27 14:28:31 +01:00
Rhodri James
a7ae0fc804
Make test_alloc_long_doc_name() robust vs allocation pattern changes
2017-07-27 14:25:27 +01:00
Rhodri James
85df01d9e0
Make test_alloc_realloc_attributes() robust vs allocation changes
2017-07-27 14:24:28 +01:00
Rhodri James
165bfa94ef
Make test_alloc_realloc_ce_extends_pe() robust vs allocation changes
2017-07-27 14:23:43 +01:00
Rhodri James
a879906c08
Make test_alloc_realloc_param_entity_newline() robust vs allocations
2017-07-27 14:21:58 +01:00
Rhodri James
39bba875ef
Make test_alloc_long_attr_value() robust vs allocation changes
2017-07-27 14:18:40 +01:00
Rhodri James
890efa6b33
Make test_alloc_long_attr_default_with_char_ref() robust vs allocs
2017-07-27 14:17:20 +01:00