[asterisk-commits] russell: trunk r254159 - /trunk/main/test.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Mar 23 17:35:59 CDT 2010
Author: russell
Date: Tue Mar 23 17:35:56 2010
New Revision: 254159
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=254159
Log:
Put test output for a failure in a CDATA section in the XML results.
Modified:
trunk/main/test.c
Modified: trunk/main/test.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/test.c?view=diff&rev=254159&r1=254158&r2=254159
==============================================================================
--- trunk/main/test.c (original)
+++ trunk/main/test.c Tue Mar 23 17:35:56 2010
@@ -186,7 +186,7 @@
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");
}
More information about the asterisk-commits
mailing list