From e92f989efe3a7cd4eb6d54d1e54390ece9a68c2c Mon Sep 17 00:00:00 2001 From: Rhodri James Date: Tue, 14 Feb 2017 16:40:55 +0000 Subject: [PATCH] Add default handlers to character entity tests to extend coverage --- expat/tests/runtests.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index 2470bf66..cf20b91e 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -580,6 +580,13 @@ START_TEST(test_latin1_umlauts) run_character_check(text, utf8); XML_ParserReset(parser, NULL); run_attribute_check(text, utf8); + /* Repeat with a default handler */ + XML_ParserReset(parser, NULL); + XML_SetDefaultHandler(parser, dummy_default_handler); + run_character_check(text, utf8); + XML_ParserReset(parser, NULL); + XML_SetDefaultHandler(parser, dummy_default_handler); + run_attribute_check(text, utf8); } END_TEST