projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48edf2c
)
Put test output for a failure in a CDATA section in the XML results.
author
Russell Bryant
<russell@russellbryant.com>
Tue, 23 Mar 2010 22:35:56 +0000
(22:35 +0000)
committer
Russell Bryant
<russell@russellbryant.com>
Tue, 23 Mar 2010 22:35:56 +0000
(22:35 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@254159
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
main/test.c
patch
|
blob
|
history
diff --git
a/main/test.c
b/main/test.c
index
766775c
..
3427bf2
100644
(file)
--- 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");
}