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

index 778b96a42820e92d5c292c7407469b5fface0de4..9f19586ac67512373fb5ff9f3c063b122cc89619 100644 (file)
@@ -6822,7 +6822,11 @@ START_TEST(test_entity_in_utf16_le_attr)
         /* <e a='&#228; &#x00E4;'></e> */
         "<\0e\0 \0a\0=\0'\0&\0#\0\x32\0\x32\0\x38\0;\0 \0"
         "&\0#\0x\0\x30\0\x30\0E\0\x34\0;\0'\0>\0<\0/\0e\0>\0";
-    const XML_Char *expected = "\xc3\xa4 \xc3\xa4";
+#ifdef XML_UNICODE
+    const XML_Char *expected = XCS("\x00e4 \x00e4");
+#else
+    const XML_Char *expected = XCS("\xc3\xa4 \xc3\xa4");
+#endif
     CharData storage;
 
     CharData_Init(&storage);