]> granicus.if.org Git - libexpat/commitdiff
Fix test_suspend_resume_parameter_entity() to work in UTF-16
authorRhodri James <rhodri@kynesim.co.uk>
Tue, 22 Aug 2017 15:03:35 +0000 (16:03 +0100)
committerSebastian Pipping <sebastian@pipping.org>
Tue, 29 Aug 2017 21:13:14 +0000 (23:13 +0200)
expat/tests/runtests.c

index 15603f47f70c636fbb2b5254a170bbab49a66c65..751ddec03d44738e26cc9d1928b1124c0a454a4f 100644 (file)
@@ -5306,7 +5306,7 @@ START_TEST(test_suspend_resume_parameter_entity)
         "%foo;\n"
         "]>\n"
         "<doc>Hello, world</doc>";
-    const char *expected = "Hello, world";
+    const XML_Char *expected = XCS("Hello, world");
     CharData storage;
 
     CharData_Init(&storage);
@@ -5317,7 +5317,7 @@ START_TEST(test_suspend_resume_parameter_entity)
     if (XML_Parse(parser, text, strlen(text),
                   XML_TRUE) != XML_STATUS_SUSPENDED)
         xml_failure(parser);
-    CharData_CheckXMLChars(&storage, "");
+    CharData_CheckXMLChars(&storage, XCS(""));
     if (XML_ResumeParser(parser) != XML_STATUS_OK)
         xml_failure(parser);
     CharData_CheckXMLChars(&storage, expected);