Skip to content
Snippets Groups Projects
Commit 8ce43f35 authored by Andre Puschmann's avatar Andre Puschmann
Browse files

log result when TC finishes with verdict inconc


when a TC finished with verdict inconc the JUnitLogger was not logging
the result and so the TC in the generated XML could have been interpreted
as passed

Signed-off-by: default avatarAndre Puschmann <andre@softwareradiosystems.com>
parent 53d5897c
No related branches found
No related tags found
1 merge request!143log result when TC finishes with verdict inconc
...@@ -236,6 +236,13 @@ void TestCase::writeTestCase(FILE* file_stream_) const{ ...@@ -236,6 +236,13 @@ void TestCase::writeTestCase(FILE* file_stream_) const{
fprintf(file_stream_, " <error type='DTE'>%s</error>\n", dte_reason.data()); fprintf(file_stream_, " <error type='DTE'>%s</error>\n", dte_reason.data());
fprintf(file_stream_, " </testcase>\n"); fprintf(file_stream_, " </testcase>\n");
break; } break; }
case Inconc: {
fprintf(file_stream_, " <testcase classname='%s' name='%s' time='%f'>\n", module_name.data(), tc_name.data(), time);
fprintf(file_stream_, " <failure type='inconclusive-verdict'>%s\n", reason.data());
fprintf(file_stream_, "%s\n", stack_trace.data());
fprintf(file_stream_, " </failure>\n");
fprintf(file_stream_, " </testcase>\n");
break; }
default: default:
fprintf(file_stream_, " <testcase classname='%s' name='%s' time='%f'/>\n", module_name.data(), tc_name.data(), time); fprintf(file_stream_, " <testcase classname='%s' name='%s' time='%f'/>\n", module_name.data(), tc_name.data(), time);
break; break;
......
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