From 6cacca3987c463f0197503d24f1b3d16926ad935 Mon Sep 17 00:00:00 2001 From: Rhodri James Date: Mon, 27 Feb 2017 15:27:29 +0000 Subject: [PATCH] Refactor previous test to use existing test functions --- expat/tests/runtests.c | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index 755ea585..ddfdfe2b 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -3445,30 +3445,20 @@ START_TEST(test_ignore_section) END_TEST /* Test mis-formatted conditional exclusion */ -static int XMLCALL -external_entity_bad_ignore(XML_Parser parser, - const XML_Char *context, - const XML_Char *UNUSED_P(base), - const XML_Char *UNUSED_P(systemId), - const XML_Char *UNUSED_P(publicId)) -{ - const char *text = "\n" "&entity;"; + ExtFaults fault = { + "