aboutsummaryrefslogtreecommitdiffstats
path: root/main/test.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-03-23 22:35:56 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2010-03-23 22:35:56 +0000
commit632a45fdadead86043915037da1619afa08a2ca9 (patch)
treedf5e632ba03a2426e2c43ffa89de210c4289816f /main/test.c
parent52e75777f1ca69fc02aec87c709efad76b3204a8 (diff)
Put test output for a failure in a CDATA section in the XML results.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@254159 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/test.c')
-rw-r--r--main/test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/test.c b/main/test.c
index 766775c7a..3427bf205 100644
--- a/main/test.c
+++ b/main/test.c
@@ -186,7 +186,7 @@ static void test_xml_entry(struct ast_test *test, FILE *f)
test->state == AST_TEST_PASS ? "/" : "");
if (test->state == AST_TEST_FAIL) {
- fprintf(f, "\t\t<failure>%s</failure>\n",
+ fprintf(f, "\t\t<failure><![CDATA[\n%s\n\t\t]]></failure>\n",
S_OR(ast_str_buffer(test->status_str), "NA"));
fprintf(f, "\t</testcase>\n");
}