Commit Graph

1958 Commits

Author SHA1 Message Date
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
fe1adcaa84 Comment change: exclude error() role handler from coverage 2017-07-22 22:49:22 +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
63dc602a12 Comment change: exclude unreachable case in prolog1 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
Rhodri James
9032ba09e8 Test CDATA is passed correctly from little-endian UTF-16 input 2017-07-22 22:49:21 +02:00
Rhodri James
15261c078c Test entity substitution in attributes, UTF-16 little endian 2017-07-22 22:49:21 +02:00
Rhodri James
3536d8749a Test entity substitution in attributes UTF-16 big-endian 2017-07-22 22:49:21 +02:00
Rhodri James
950382c0c1 Test PI in big-endian UTF-16 2017-07-22 22:49:20 +02:00
Rhodri James
3c8d9300f6 Comment change: exclude unreachable line from coverage figures 2017-07-22 22:49:20 +02:00
Rhodri James
7979e831ed Comment change: exclude sameName from coverage 2017-07-22 22:49:20 +02:00
Rhodri James
a35f012501 Test entities with similar names to predefined entity are rejected 2017-07-22 22:49:20 +02:00
Rhodri James
80945fba17 Test invalid character reference with a decimal value
Previous limit test used hexed, which has a difference parse path.
2017-07-22 22:49:20 +02:00
Rhodri James
fc25cfd750 Test IGNORE rejection with an unknown encoding 2017-07-22 22:49:20 +02:00
Rhodri James
0df93c5619 Test IGNORE section with UTF-16 data 2017-07-22 22:49:20 +02:00
Rhodri James
8be7b89885 Comment change: exclude paranoia check from coverage 2017-07-22 22:49:20 +02:00
Rhodri James
36e47058dc Comment change: exclude paranoia check from coverage 2017-07-22 22:49:20 +02:00
Rhodri James
c53aba8bf7 Test multi-byte characters in ATTLIST default attribute value 2017-07-22 22:49:20 +02:00
Rhodri James
ca1cb78164 Fix error messages in test_bad_doctype_* tests 2017-07-22 22:49:20 +02:00
Rhodri James
c73e63de42 Test document name of "1?" is rejected in doctype declaration 2017-07-22 22:49:20 +02:00
Rhodri James
61db6a8a93 Test document name of "1*" is rejected in a doctype declaration 2017-07-22 22:49:20 +02:00
Rhodri James
bb60b30a68 Test document name of "1+" is rejected in doctype
Following a codepath that requires a character valid in a name but
not at the start (or '-' or ':') followed by a '+'
2017-07-22 22:49:20 +02:00