From c33ff57a51596aad63dc562d7d63c145d4cfe6ee Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Wed, 13 Nov 2024 14:27:20 +0100 Subject: [PATCH] tests: Save runtime on tests that do not use the single-bytes approach Related tests are: - test_reset_in_entity - test_resume_entity_with_syntax_error - test_suspend_parser_between_cdata_calls --- expat/tests/basic_tests.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/expat/tests/basic_tests.c b/expat/tests/basic_tests.c index 98d09e3e..e52e0c42 100644 --- a/expat/tests/basic_tests.c +++ b/expat/tests/basic_tests.c @@ -1834,6 +1834,11 @@ END_TEST /* Test suspending the parser in cdata handler */ START_TEST(test_suspend_parser_between_cdata_calls) { + if (g_chunkSize != 0) { + // this test does not use SINGLE_BYTES, because of suspension + return; + } + const char *text = long_cdata_text; enum XML_Status result; @@ -2384,6 +2389,11 @@ END_TEST * entity. Exercises some obscure code in XML_ParserReset(). */ START_TEST(test_reset_in_entity) { + if (g_chunkSize != 0) { + // this test does not use SINGLE_BYTES, because of suspension + return; + } + const char *text = "\n" "\n" @@ -3840,6 +3850,11 @@ END_TEST /* Test syntax error is caught at parse resumption */ START_TEST(test_resume_entity_with_syntax_error) { + if (g_chunkSize != 0) { + // this test does not use SINGLE_BYTES, because of suspension + return; + } + const char *text = "Hi'>\n" "]>\n"