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

index aeaba66afde9fa12a5bdf3296e973ede6dedf252..7fc4c136eec80184536b659e4e09638ff78772ac 100644 (file)
@@ -6351,11 +6351,15 @@ START_TEST(test_ext_entity_utf16_le)
         NULL,
         EE_PARSE_NONE
     };
+#ifdef XML_UNICODE
+    const XML_Char *expected = XCS("\x3c00\x6500\x2f00\x3e00");
+#else
     const XML_Char *expected =
-        "\xe3\xb0\x80"  /* U+3C00 */
-        "\xe6\x94\x80"  /* U+6A00 */
-        "\xe2\xbc\x80"  /* U+2F00 */
-        "\xe3\xb8\x80"; /* U+3E00 */
+        XCS("\xe3\xb0\x80"   /* U+3C00 */
+            "\xe6\x94\x80"   /* U+6500 */
+            "\xe2\xbc\x80"   /* U+2F00 */
+            "\xe3\xb8\x80"); /* U+3E00 */
+#endif
     CharData storage;
 
     CharData_Init(&storage);