diff options
author | Russell Bryant <russell@russellbryant.com> | 2010-03-23 22:35:56 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2010-03-23 22:35:56 +0000 |
commit | d9b1ff23badb9eeb36e5ff70a904337118230896 (patch) | |
tree | df5e632ba03a2426e2c43ffa89de210c4289816f /main/test.c | |
parent | 48edf2c78a336139d9058349add502c5ab3103f9 (diff) |
Put test output for a failure in a CDATA section in the XML results.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@254159 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/test.c')
-rw-r--r-- | main/test.c | 2 |
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"); } |