Skip to content
Snippets Groups Projects
Commit 6d6c60bf authored by BenceJanosSzabo's avatar BenceJanosSzabo
Browse files

junitloggers: escaped special characters in verdict message (Bug 509855)


Change-Id: I076d51adc19c73096c06928cf15e8cb973725e1b
Signed-off-by: default avatarBenceJanosSzabo <bence.janos.szabo@ericsson.com>
parent 9522d427
No related branches found
No related tags found
No related merge requests found
......@@ -177,7 +177,7 @@ void JUnitLogger::log(const TitanLoggerApi::TitanLogEvent& event,
(now - then) / 1000000.0,
verdict_name[tct.verdict()],
(tct.reason().lengthof() > 0 ? ", reason: " : ""),
(const char*)tct.reason());
(const char*)escape_xml_element(tct.reason()));
fprintf(file_stream_, " <testcase classname='%s' name='%s' time='%f'>\n",
(const char*)tct.name().module__name(),
......
......@@ -151,7 +151,7 @@ void JUnitLogger2::log(const TitanLoggerApi::TitanLogEvent& event,
case TitanLoggerApi::TestcaseEvent_choice::ALT_testcaseFinished: {
const TitanLoggerApi::TestcaseType& tct = tcev.testcaseFinished();
testcase.reason = tct.reason();
testcase.reason = escape_xml_element(tct.reason());
testcase.module_name = tct.name().module__name();
const TitanLoggerApi::TimestampType& ts = event.timestamp();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment