From 907e4cc32b9497d49698eab2d6e0430a9d69927c Mon Sep 17 00:00:00 2001 From: Rhodri James Date: Tue, 22 Aug 2017 15:31:46 +0100 Subject: [PATCH] Fix test_attribute_enum_value() to work for UTF-16 builds --- expat/tests/runtests.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.40.0