From: Rhodri James Date: Tue, 22 Aug 2017 13:22:11 +0000 (+0100) Subject: Fix test_set_base() to work for UTF-16 builds X-Git-Tag: R_2_2_5~24^2~98 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4fe2c1a5e4788b6403355e270cc55f2ca9963ad9;p=libexpat Fix test_set_base() to work for UTF-16 builds --- diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index d9cac5c1..d7028a65 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -3014,12 +3014,12 @@ END_TEST START_TEST(test_set_base) { const XML_Char *old_base; - const XML_Char *new_base = "/local/file/name.xml"; + const XML_Char *new_base = XCS("/local/file/name.xml"); old_base = XML_GetBase(parser); if (XML_SetBase(parser, new_base) != XML_STATUS_OK) fail("Unable to set base"); - if (strcmp(XML_GetBase(parser), new_base) != 0) + if (xcstrcmp(XML_GetBase(parser), new_base) != 0) fail("Base setting not correct"); if (XML_SetBase(parser, NULL) != XML_STATUS_OK) fail("Unable to NULL base");