Rhodri James
75e29a7191
Use named constant for magic number in test_alloc_explicit_encoding()
2017-07-27 13:09:54 +01:00
Rhodri James
4861cf1c48
Make test_alloc_dtd_default_handling() robust vs allocation changes
2017-07-27 13:04:58 +01:00
Rhodri James
53a311d4dc
Make test_alloc_internal_entity() robust vs allocation pattern changes
2017-07-27 13:02:44 +01:00
Rhodri James
12b3aa4fc9
test_alloc_ext_entity_set_encoding() robust vs allocation changes
2017-07-27 12:57:58 +01:00
Rhodri James
34c8a1d904
Make test_alloc_external_entity() robust vs allocation pattern changes
2017-07-27 12:57:58 +01:00
Rhodri James
fce16d1b9f
Refactor test_alloc_run_external_parser()
2017-07-27 12:57:46 +01:00
Rhodri James
21b1bb4c6f
Make test_alloc_parse_comment_2() robust vs allocation pattern changes
2017-07-27 12:18:47 +01:00
Rhodri James
641e47bb34
Make test_alloc_parse_comment() robust vs allocation pattern changes
2017-07-27 12:17:15 +01:00
Rhodri James
2394d4df53
Make test_alloc_parse_pi_3 robust vs allocation pattern changes
2017-07-27 12:14:22 +01:00
Rhodri James
6c68d5f3e1
Make test_alloc_parse_pi_2() robust vs allocation pattern changes
2017-07-27 12:10:00 +01:00
Rhodri James
001795e298
Make test_alloc_parse_pi() robust vs allocation pattern changes
2017-07-27 12:05:58 +01:00
Rhodri James
d16a581849
Remove memory leak in external_entity_optioner()
2017-07-27 11:50:15 +01:00
Rhodri James
ebe390bab0
Make test_alloc_parse_xdecl_2() robust vs allocation pattern changes
2017-07-26 18:56:37 +01:00
Rhodri James
52970d4a53
Make test_alloc_parse_xdecl() robust vs allocation pattern changes
2017-07-26 18:56:37 +01:00
Rhodri James
b08aa8500e
Make test_nsalloc_prefixed_element() robust vs allocation changes
2017-07-26 18:56:37 +01:00
Rhodri James
69e781f06d
Make test_nsalloc_long_systemid_in_ext() robust
...
Makes test more predictable in the face of changing memory
allocation patterns in the library.
2017-07-26 18:56:37 +01:00
Rhodri James
3871e6dc4b
Make test_nsalloc_long_default_in_ext() robust.
...
Makes test more predictable in the face of changes to the memory
allocation patterns in the library.
2017-07-26 18:56:37 +01:00
Rhodri James
ebbc2c1517
Make test_nsalloc_realloc_long_context_in_dtd() robust.
...
Makes test more predictable in the face of changes in the pattern
of memory allocations inside the library.
2017-07-26 18:56:37 +01:00
Rhodri James
a058960647
Make test_nsalloc_realloc_long_ge_name() robust.
...
Make test robust against memory allocation pattern changes
2017-07-26 18:56:37 +01:00
Rhodri James
0b1fbcfba5
Make context reallocation tests robust vs allocation pattern changes
2017-07-26 18:56:26 +01:00
Rhodri James
bc941d32c1
Make test_nsalloc_long_context() robust vs allocation pattern changes
2017-07-26 18:10:16 +01:00
Rhodri James
771bc86bb1
Make test_nsalloc_less_long_namespace() robust vs allocation changes
2017-07-26 18:08:40 +01:00
Rhodri James
7bb6261950
Make test_nsalloc_long_namespace() robust vs allocation pattern changes
2017-07-26 18:06:46 +01:00
Rhodri James
c2084de48d
Make test_nsalloc_realloc_longer_prefix_count() robust.
...
Remove test's vulnerability to changing memory allocation patterns
2017-07-26 18:01:53 +01:00
Rhodri James
a74053cf48
Make test_nsalloc_realloc_long_prefix() robust vs allocation changes
2017-07-26 18:00:40 +01:00
Rhodri James
b3853fee79
Make test_nsalloc_long_element() robust vs allocation pattern changes
2017-07-26 17:56:51 +01:00
Rhodri James
c39b9a194b
Make test_nsalloc_realloc_attributes() robust vs allocation changes
2017-07-26 17:55:15 +01:00
Rhodri James
49143cb2fe
Make test_nsalloc_long_attr_prefix() robust vs allocation pattern changes
2017-07-26 17:49:21 +01:00
Rhodri James
969031fe44
Make test_nsalloc_long_attr() robust vs allocation pattern changes
2017-07-26 17:47:48 +01:00
Rhodri James
5b81b5045a
Make test_nsalloc_long_uri() robust vs allocation pattern changes
2017-07-26 17:45:50 +01:00
Rhodri James
d705676056
Make test_nsalloc_long_prefix() robust vs allocation pattern changes
2017-07-26 17:42:03 +01:00
Rhodri James
1aa5529cf4
Make test_nsalloc_xmlns() robust vs changes in allocation patterns.
...
Most of the allocation tests use some complicated logic to ensure
that cached memory allocations do not cause the test to miss out
some possible allocation failure paths. A more robust way to do
that is to free and recreate the parser, avoiding caching
altogether. This should be done with the test case section
teardown and setup routines, so that the right sort of parser is
created. This is the first in a series of commits to switch over
to this test structure
2017-07-26 17:33:10 +01:00
Rhodri James
5d65aa7fdf
Fix spelling of "namespace allocation tests"
2017-07-25 15:18:52 +01:00
Sebastian Pipping
9c9b41f7a3
runtests.c: Fix memleaks
2017-07-22 23:32:28 +02:00
Rhodri James
17243b79c3
Test NOTATION marked SYSTEM but with no ID
2017-07-22 22:49:22 +02:00
Rhodri James
9940f71578
Test parameter entity marked SYSTEM but with no ID
2017-07-22 22:49:21 +02:00
Rhodri James
7d4bb8631d
Test parameter entity marked PUBLIC but with no ID
2017-07-22 22:49:21 +02:00
Rhodri James
5596cbbbcc
Test parameter entity with invalid keyword (not SYSTEM or PUBLIC)
2017-07-22 22:49:21 +02:00
Rhodri James
81a3f2f73f
Test Entity declaration marked PUBLIC with no ID
2017-07-22 22:49:21 +02:00
Rhodri James
e5c61fed18
Test that Doctype with an extra ID is rejected
2017-07-22 22:49:21 +02:00
Rhodri James
cb16ead042
Test Doctype marked SYSTEM but with no ID is rejected
2017-07-22 22:49:21 +02:00
Rhodri James
b78b96f6df
Test Doctype marked PUBLIC but with no ID is rejected
2017-07-22 22:49:21 +02:00
Rhodri James
5bbc983e7d
Test overly brief doctype is rejected
2017-07-22 22:49:21 +02:00
Rhodri James
069a0da15c
Extend UTF-16 LE entity test to hex entities
2017-07-22 22:49:21 +02:00
Rhodri James
ff20944a1a
Extend UTF-16 BE entity test to hex entities
2017-07-22 22:49:21 +02:00
Rhodri James
c3963ec9a1
Test that comments are picked up from UTF-16 little-endian
2017-07-22 22:49:21 +02:00
Rhodri James
0275ef9330
Test that comments are picked up from UTF-16 big-endian
2017-07-22 22:49:21 +02:00
Rhodri James
16c9fa852f
Test public external parameter entity in UTF-16 little-endian
2017-07-22 22:49:21 +02:00
Rhodri James
19d4c9e2c3
Test public external param entity in UTF-16 big-endian
2017-07-22 22:49:21 +02:00
Rhodri James
eee8ad3e33
Test ignore section in UTF-16 big-endian encoding
2017-07-22 22:49:21 +02:00