From: Rhodri James Date: Tue, 22 Aug 2017 14:31:46 +0000 (+0100) Subject: Fix test_attribute_enum_value() to work for UTF-16 builds X-Git-Tag: R_2_2_5~24^2~82 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=907e4cc32b9497d49698eab2d6e0430a9d69927c;p=libexpat Fix test_attribute_enum_value() to work for UTF-16 builds --- diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index 28bfb033..2deb4c01 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -4798,14 +4798,14 @@ START_TEST(test_attribute_enum_value) NULL, NULL }; + const XML_Char *expected = XCS("This is a \n \n\nyellow tiger"); XML_SetExternalEntityRefHandler(parser, external_entity_loader); XML_SetUserData(parser, &dtd_data); XML_SetParamEntityParsing(parser, XML_PARAM_ENTITY_PARSING_ALWAYS); /* An attribute list handler provokes a different code path */ XML_SetAttlistDeclHandler(parser, dummy_attlist_decl_handler); - run_ext_character_check(text, &dtd_data, - "This is a \n \n\nyellow tiger"); + run_ext_character_check(text, &dtd_data, expected); } END_TEST