mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
embunit: fix outputters for msp430
This commit is contained in:
parent
f684aa4b2d
commit
91050cd72d
@ -64,7 +64,7 @@ static void CompilerOutputter_printFailure(OutputterRef self,TestRef test,char *
|
||||
{
|
||||
(void)self;
|
||||
(void)runCount;
|
||||
fprintf(stdout,"%s %d: %s: %s\n", file, line, Test_name(test), msg);
|
||||
printf("%s %d: %s: %s\n", file, line, Test_name(test), msg);
|
||||
}
|
||||
|
||||
static void CompilerOutputter_printStatistics(OutputterRef self,TestResultRef result)
|
||||
|
@ -43,7 +43,7 @@ static void TextOutputter_printHeader(OutputterRef self)
|
||||
static void TextOutputter_printStartTest(OutputterRef self,TestRef test)
|
||||
{
|
||||
(void)self;
|
||||
fprintf(stdout,"- %s\n",Test_name(test));
|
||||
printf("- %s\n",Test_name(test));
|
||||
}
|
||||
|
||||
static void TextOutputter_printEndTest(OutputterRef self,TestRef test)
|
||||
@ -55,22 +55,22 @@ static void TextOutputter_printEndTest(OutputterRef self,TestRef test)
|
||||
static void TextOutputter_printSuccessful(OutputterRef self,TestRef test,int runCount)
|
||||
{
|
||||
(void)self;
|
||||
fprintf(stdout,"%d) OK %s\n", runCount, Test_name(test));
|
||||
printf("%d) OK %s\n", runCount, Test_name(test));
|
||||
}
|
||||
|
||||
static void TextOutputter_printFailure(OutputterRef self,TestRef test,char *msg,int line,char *file,int runCount)
|
||||
{
|
||||
(void)self;
|
||||
fprintf(stdout,"%d) NG %s (%s %d) %s\n", runCount, Test_name(test), file, line, msg);
|
||||
printf("%d) NG %s (%s %d) %s\n", runCount, Test_name(test), file, line, msg);
|
||||
}
|
||||
|
||||
static void TextOutputter_printStatistics(OutputterRef self,TestResultRef result)
|
||||
{
|
||||
(void)self;
|
||||
if (result->failureCount) {
|
||||
fprintf(stdout,"\nrun %d failures %d\n",result->runCount,result->failureCount);
|
||||
printf("\nrun %d failures %d\n",result->runCount,result->failureCount);
|
||||
} else {
|
||||
fprintf(stdout,"\nOK (%d tests)\n",result->runCount);
|
||||
printf("\nOK (%d tests)\n",result->runCount);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -40,55 +40,55 @@ static char *stylesheet_;
|
||||
static void XMLOutputter_printHeader(OutputterRef self)
|
||||
{
|
||||
(void)self;
|
||||
fprintf(stdout,"<?xml version=\"1.0\" encoding='shift_jis' standalone='yes' ?>\n");
|
||||
printf("<?xml version=\"1.0\" encoding='shift_jis' standalone='yes' ?>\n");
|
||||
if (stylesheet_)
|
||||
fprintf(stdout,"<?xml-stylesheet type=\"text/xsl\" href=\"%s\" ?>\n",stylesheet_);
|
||||
fprintf(stdout,"<TestRun>\n");
|
||||
printf("<?xml-stylesheet type=\"text/xsl\" href=\"%s\" ?>\n",stylesheet_);
|
||||
printf("<TestRun>\n");
|
||||
}
|
||||
|
||||
static void XMLOutputter_printStartTest(OutputterRef self,TestRef test)
|
||||
{
|
||||
(void)self;
|
||||
fprintf(stdout,"<%s>\n",Test_name(test));
|
||||
printf("<%s>\n",Test_name(test));
|
||||
}
|
||||
|
||||
static void XMLOutputter_printEndTest(OutputterRef self,TestRef test)
|
||||
{
|
||||
(void)self;
|
||||
fprintf(stdout,"</%s>\n",Test_name(test));
|
||||
printf("</%s>\n",Test_name(test));
|
||||
}
|
||||
|
||||
static void XMLOutputter_printSuccessful(OutputterRef self,TestRef test,int runCount)
|
||||
{
|
||||
(void)self;
|
||||
fprintf(stdout,"<Test id=\"%d\">\n",runCount);
|
||||
fprintf(stdout,"<Name>%s</Name>\n",Test_name(test));
|
||||
fprintf(stdout,"</Test>\n");
|
||||
printf("<Test id=\"%d\">\n",runCount);
|
||||
printf("<Name>%s</Name>\n",Test_name(test));
|
||||
printf("</Test>\n");
|
||||
}
|
||||
|
||||
static void XMLOutputter_printFailure(OutputterRef self,TestRef test,char *msg,int line,char *file,int runCount)
|
||||
{
|
||||
(void)self;
|
||||
fprintf(stdout,"<FailedTest id=\"%d\">\n",runCount);
|
||||
fprintf(stdout,"<Name>%s</Name>\n",Test_name(test));
|
||||
fprintf(stdout,"<Location>\n");
|
||||
fprintf(stdout,"<File>%s</File>\n",file);
|
||||
fprintf(stdout,"<Line>%d</Line>\n",line);
|
||||
fprintf(stdout,"</Location>\n");
|
||||
fprintf(stdout,"<Message>%s</Message>\n",msg);
|
||||
fprintf(stdout,"</FailedTest>\n");
|
||||
printf("<FailedTest id=\"%d\">\n",runCount);
|
||||
printf("<Name>%s</Name>\n",Test_name(test));
|
||||
printf("<Location>\n");
|
||||
printf("<File>%s</File>\n",file);
|
||||
printf("<Line>%d</Line>\n",line);
|
||||
printf("</Location>\n");
|
||||
printf("<Message>%s</Message>\n",msg);
|
||||
printf("</FailedTest>\n");
|
||||
}
|
||||
|
||||
static void XMLOutputter_printStatistics(OutputterRef self,TestResultRef result)
|
||||
{
|
||||
(void)self;
|
||||
fprintf(stdout,"<Statistics>\n");
|
||||
fprintf(stdout,"<Tests>%d</Tests>\n",result->runCount);
|
||||
printf("<Statistics>\n");
|
||||
printf("<Tests>%d</Tests>\n",result->runCount);
|
||||
if (result->failureCount) {
|
||||
fprintf(stdout,"<Failures>%d</Failures>\n",result->failureCount);
|
||||
printf("<Failures>%d</Failures>\n",result->failureCount);
|
||||
}
|
||||
fprintf(stdout,"</Statistics>\n");
|
||||
fprintf(stdout,"</TestRun>\n");
|
||||
printf("</Statistics>\n");
|
||||
printf("</TestRun>\n");
|
||||
}
|
||||
|
||||
static const OutputterImplement XMLOutputterImplement = {
|
||||
|
Loading…
Reference in New Issue
Block a user