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

index 460bab5043dd894b3caf34c2b331c3af654c8d69..98cf992100891c9203aff839bafba25532330abc 100644 (file)
@@ -10852,10 +10852,10 @@ START_TEST(test_nsalloc_long_element)
         " xmlns:foo='http://example.org/' bar:a='12'\n"
         " xmlns:bar='http://example.org/'>"
         "</foo:thisisalongenoughelementnametotriggerareallocation>";
-    const char *elemstr[] = {
-        "http://example.org/"
-        " thisisalongenoughelementnametotriggerareallocation foo",
-        "http://example.org/ a bar"
+    const XML_Char *elemstr[] = {
+        XCS("http://example.org/")
+        XCS(" thisisalongenoughelementnametotriggerareallocation foo"),
+        XCS("http://example.org/ a bar")
     };
     int i;
     const int max_alloc_count = 30;