Commit graph

3737 commits

Author SHA1 Message Date
Rhodri James
8000770127 Move a bunch more allocation tests out of runtests.c 2022-10-31 17:38:41 +00:00
Rhodri James
b81eca3052 Move test_alloc_external_entity out of runtests.c
Again modify slightly to avoid use of intptr_t
2022-10-31 17:32:38 +00:00
Rhodri James
639cb93f78 Move test_alloc_dtd_copy_default_atts outof runtests.c
Modify the test and handler slightly to avoid abusing UserData to
pass an integer to the handler instead of a pointer.  Mostly this
just avoids including stdint.h
2022-10-31 17:13:09 +00:00
Rhodri James
4c6d77c368 Move basic failing-allocator entity tests out of runtests.c 2022-10-31 17:03:07 +00:00
Rhodri James
932748bf1b Move remaining declaration, comment and PI tests out of runtests.c 2022-10-31 16:57:03 +00:00
Rhodri James
e827f83974 Move first allocation test out of runtests.c 2022-10-31 16:36:21 +00:00
Rhodri James
badcbe21f7 Move framework for allocation tests to new alloc_tests.c
Note that the alloc_setup and alloc_teardown functions are
not static for the moment, since they will be required in both
alloc_tests.c and runtests.c until the test case move is complete.
2022-10-31 16:32:54 +00:00
Rhodri James
38d65ef5f3 Move remaining misc tests out of runtests.c
It is unclear why these are misc tests rather than basic or
namespace tests.  They are also disappointingly cavalier about
checking return values (e.g. from the unnecessary mallocs). At
some point they need revisiting and tidying up.
2022-10-31 16:10:41 +00:00
Rhodri James
9a45d5f485 Move some more misc tests out of runtests.c 2022-10-31 15:55:17 +00:00
Rhodri James
db4b5fe845 Move and fix the version test out of runtests.c
The tests can't be run with XML_UNICODE and XML_UNICODE_WCHAR_T
inconsistently set, both build systems protect against that.  The
second branch of the test is therefore redundant (as evidenced by
the stale version number it is testing against) and has been
deleted.
2022-10-31 14:24:10 +00:00
Rhodri James
88b1104792 Move the first tranche of misc tests out of runtests.c 2022-10-31 14:07:54 +00:00
Rhodri James
a1dc75441c Set up to move misc tests from tests/runtests.c 2022-10-31 14:05:23 +00:00
Rhodri James
e70f9b2d5b Move the fail-on-command allocators to tests/common.c
Also make the control variables int rather than intptr_t.  They
were previously typed for convenience of passing them as a user
data "pointer", but that's much less convenient when they are
externally linked.
2022-10-31 13:14:46 +00:00
Rhodri James
b9686e7887 Move remaining namespace tests from runtests.c to ns_tests.c 2022-10-31 13:07:51 +00:00
Rhodri James
707e4af1d6 Move test_start_ns_clears_start_element out of runtests.c 2022-10-31 12:57:06 +00:00
Rhodri James
afd8c08b80 Move first namespace tests out of runtests.c to new ns_tests.c
These two tests need to be moved together because test_ns_parser_reset
calls test_return_ns_triplet, and the START_TEST macro defines test
functions to be static.
2022-10-31 12:56:48 +00:00
Sebastian Pipping
59fea9dd51 Sync file headers 2022-10-30 18:11:07 +01:00
Sebastian Pipping
48bc51fcf1 examples/element_declarations.c: Resolve recursion 2022-10-30 18:11:06 +01:00
Sebastian Pipping
7483d04a18 examples/element_declarations.c: Handle element declarations rather than elements 2022-10-30 18:10:42 +01:00
Sebastian Pipping
6b53a8de82 examples: Clone example "examples" to "element_declarations" 2022-10-30 17:54:48 +01:00
Rhodri James
f0976982b1 Move final basic tests out of runtests.c
Also make make_basic_test_case a void function, since the TCase
object is no longer needed elsewhere.
2022-10-28 22:18:42 +01:00
Rhodri James
959d3f43a4 Move most remaining basic tests out of runtests.c 2022-10-28 22:14:12 +01:00
Rhodri James
b53efe051d Move more (mostly UTF16) tests out of runtests.c 2022-10-28 22:07:11 +01:00
Rhodri James
eef3e9f4c2 Move more encoding tests out of runtests.c 2022-10-28 22:04:25 +01:00
Rhodri James
6933957fb6 Move (some) external entity UTF16 encoding tests out of runtests.c 2022-10-28 22:00:04 +01:00
Rhodri James
df7d0caec1 Move unknown encoding tests out of runtests.c 2022-10-28 21:55:31 +01:00
Rhodri James
dfbb39b755 Move some UTF16 comment tests out of runtests.c 2022-10-28 21:48:29 +01:00
Rhodri James
bbbc7cfe79 Move the first batch of PI tests out of runtests.c 2022-10-28 21:45:29 +01:00
Rhodri James
02a58b9eb8 Move another tranche of basic tests out of runtests.c 2022-10-28 21:30:56 +01:00
Rhodri James
33343db13d Move another collection of tests out of runtests.c 2022-10-28 20:55:38 +01:00
Rhodri James
dc9689b1c2 Move some entity suspension tests out of runtests.c 2022-10-28 20:52:32 +01:00
Rhodri James
b08ce35a73 Move remaining basic epilog tests out of runtests.c 2022-10-28 20:47:51 +01:00
Rhodri James
9bece1957f Move (some) epilog tests out of runtests.c 2022-10-28 20:45:35 +01:00
Rhodri James
b55c5df683 Move test_suspend_xdecl out of runtests.c 2022-10-28 20:43:31 +01:00
Rhodri James
123d2695a3 Remove redundant aborting_xdecl_handler from runtests.c 2022-10-28 20:42:11 +01:00
Rhodri James
b4498d85c5 Move test_undefined_ext_entity_in_external_dtd out of runtests.c 2022-10-28 20:37:54 +01:00
Rhodri James
252e93dbdc Move some parameter entity tests out of runtests.c 2022-10-28 20:31:36 +01:00
Rhodri James
16ddb05e82 Move some group tests out of runtests.c 2022-10-28 20:31:36 +01:00
Rhodri James
c4b41fbb17 Move still more tests out of runtests.c 2022-10-28 20:31:36 +01:00
Rhodri James
8d3fe6ce74 Move test_ext_entity_not_standalone out of runtests.c 2022-10-28 20:31:36 +01:00
Rhodri James
07b7a9f4fc Move test_external_entity_values out of runtests.c 2022-10-28 20:31:36 +01:00
Rhodri James
5509b7df8a Move remaining ignore section tests out of runtests.c 2022-10-28 20:31:36 +01:00
Rhodri James
eda657484c Move more basic tests out of runtests.c 2022-10-28 20:31:36 +01:00
Rhodri James
f25cea8669 Move more basic tests out of runtests.c 2022-10-28 20:31:36 +01:00
Rhodri James
991924c7da Move byte_character_handler out of runtests.c 2022-10-28 20:31:31 +01:00
Rhodri James
bf11ca9025 Move (some) XML_GetBuffer tests out of runtests.c 2022-10-28 20:00:24 +01:00
Rhodri James
4c28bb1681 Move external_entity_ref_param_checker out of runtests.c 2022-10-28 19:56:09 +01:00
Rhodri James
f0adbc47ef Move test_user_parameters out of runtests.c 2022-10-28 19:09:52 +01:00
Rhodri James
3946a35816 Move external entity CDATA test out of runtests.c 2022-10-28 18:59:57 +01:00
Rhodri James
8a54cd9fcd Move right square bracket handlers and tests out of runtests.c 2022-10-28 18:58:33 +01:00