diff options
author | Ivan Zhakov <ivan@apache.org> | 2019-05-12 15:05:00 +0000 |
---|---|---|
committer | Ivan Zhakov <ivan@apache.org> | 2019-05-12 15:05:00 +0000 |
commit | d6e2bf325ad0d02849701289e92171715150e6ee (patch) | |
tree | 0d321027eed63831707d054efc9e778c20b5488a | |
parent | 95f81e4ea2b64ec9e62f134d51eebba42c128fc3 (diff) | |
download | apr-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.c | 2 |
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); |