diff options
Diffstat (limited to 'examples/org.eclipse.etrice.generator.c.reference/src/runtime/RUnit.c')
-rw-r--r-- | examples/org.eclipse.etrice.generator.c.reference/src/runtime/RUnit.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/org.eclipse.etrice.generator.c.reference/src/runtime/RUnit.c b/examples/org.eclipse.etrice.generator.c.reference/src/runtime/RUnit.c index 655e84d43..0ab3e7dce 100644 --- a/examples/org.eclipse.etrice.generator.c.reference/src/runtime/RUnit.c +++ b/examples/org.eclipse.etrice.generator.c.reference/src/runtime/RUnit.c @@ -16,10 +16,13 @@ void RUnit_open(const char *testSuiteName) { RUnit_passCount = 0; RUnit_failCount = 0; - printf("************* TEST START **************\n"); + printf("************* TEST START (%s) **************\n", testSuiteName); + + char filename[256]; + sprintf(filename, "%s.xml", testSuiteName); if (RUnit_reportfile == NULL) { - RUnit_reportfile = fopen("report.xml", "w+"); + RUnit_reportfile = fopen(filename, "w+"); if (RUnit_reportfile != NULL) { fprintf( RUnit_reportfile, |