From: Rhodri James Date: Tue, 14 Feb 2017 17:57:58 +0000 (+0000) Subject: Add CDATA section handlers for increased test coverage X-Git-Tag: R_2_2_3~28^2~44 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=213c8523a3b9c69d66d08b2e25f6de986ae61c60;p=libexpat Add CDATA section handlers for increased test coverage --- diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index f40d3b25..726c2a5f 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -1584,6 +1584,9 @@ START_TEST(test_good_cdata_ascii) CharData_Init(&storage); XML_SetUserData(parser, &storage); XML_SetCharacterDataHandler(parser, accumulate_characters); + /* Add start and end handlers for coverage */ + XML_SetStartCdataSectionHandler(parser, dummy_start_cdata_handler); + XML_SetEndCdataSectionHandler(parser, dummy_end_cdata_handler); if (_XML_Parse_SINGLE_BYTES(parser, text, strlen(text), XML_TRUE) == XML_STATUS_ERROR) xml_failure(parser);