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

index a04cefa8882fe6a222a463ed19ada1ed110918ce..33615e94177b1571834525d3d5ffbe524c044f59 100644 (file)
@@ -8083,10 +8083,10 @@ START_TEST(test_misc_utf16le)
         "<\0?\0x\0m\0l\0 \0"
         "v\0e\0r\0s\0i\0o\0n\0=\0'\0\x31\0.\0\x30\0'\0?\0>\0"
         "<\0q\0>\0H\0i\0<\0/\0q\0>\0";
-    const XML_Char *expected = "Hi";
+    const XML_Char *expected = XCS("Hi");
     CharData storage;
 
-    parser = XML_ParserCreate("UTF-16LE");
+    parser = XML_ParserCreate(XCS("UTF-16LE"));
     if (parser == NULL)
         fail("Parser not created");