summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Zhakov <ivan@apache.org>2019-05-12 15:05:00 +0000
committerIvan Zhakov <ivan@apache.org>2019-05-12 15:05:00 +0000
commitd6e2bf325ad0d02849701289e92171715150e6ee (patch)
tree0d321027eed63831707d054efc9e778c20b5488a
parent95f81e4ea2b64ec9e62f134d51eebba42c128fc3 (diff)
downloadapr-d6e2bf325ad0d02849701289e92171715150e6ee.tar.gz
Call apr_xml_quote_elem() before apr_xml_to_text() in round-trip XML tests.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1859152 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--test/testxml.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/testxml.c b/test/testxml.c
index 452e08abf..d676a1335 100644
--- a/test/testxml.c
+++ b/test/testxml.c
@@ -192,6 +192,8 @@ static void roundtrip(abts_case* tc, char* xml, char* expected, int lineno)
if (rv != APR_SUCCESS)
return;
+ apr_xml_quote_elem(pool, doc->root);
+
apr_xml_to_text(pool, doc->root, APR_XML_X2T_FULL_NS_LANG, doc->namespaces, NULL, &actual, NULL);
abts_str_equal(tc, expected, actual, lineno);