Commit Graph

2643 Commits

Author SHA1 Message Date
Sebastian Pipping
72d9f6aa36 qa.sh: Fix "memory" mode (#65)
Looks like a regression for migration to GNU Automake.
2017-08-30 22:33:22 +02:00
Sebastian Pipping
227280db70 Merge branch 'RMJ10-unicode-tests' (pull request #132) 2017-08-29 23:36:11 +02:00
Sebastian Pipping
68a0dce355 Changes: Document pull request #132 2017-08-29 23:32:43 +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
Sebastian Pipping
b1ef760e0e CMake: Add missing integration of tests/structdata.c 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
Rhodri James
879fab5049 Fix triplet checker functions to use XML_Char correctly 2017-08-29 23:13:15 +02:00
Rhodri James
c5c02d745f Fix namespace test setup routine to work properly in UTF-16 builds 2017-08-29 23:13:15 +02:00
Rhodri James
e881a0451f Fix test_entity_public_utf16_le() to work in UTF-16 builds 2017-08-29 23:13:15 +02:00
Rhodri James
d7f2f4413a Fix test_entity_public_utf16_be() to work in UTF-16 builds 2017-08-29 23:13:15 +02:00
Rhodri James
a33f36ca15 Fix test_entity_in_utf16_le_attr() to work in UTF-16 builds 2017-08-29 23:13:15 +02:00
Rhodri James
3d96ba9b56 Fix test_entity_in_utf16_be_attr() to work in UTF-16 builds 2017-08-29 23:13:15 +02:00
Rhodri James
8780995416 Fix test_utf16_pe() to work for UTF-16 builds of the library 2017-08-29 23:13:15 +02:00