mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -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"); | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user