From 91050cd72d2249fcbaeaf4d551b7834984066b9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Kijewski?= Date: Thu, 27 Nov 2014 22:42:15 +0100 Subject: [PATCH] embunit: fix outputters for msp430 --- sys/embunit/CompilerOutputter.c | 2 +- sys/embunit/TextOutputter.c | 10 ++++---- sys/embunit/XMLOutputter.c | 42 ++++++++++++++++----------------- 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/sys/embunit/CompilerOutputter.c b/sys/embunit/CompilerOutputter.c index 10be75fa8f..3e5baa2030 100644 --- a/sys/embunit/CompilerOutputter.c +++ b/sys/embunit/CompilerOutputter.c @@ -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) diff --git a/sys/embunit/TextOutputter.c b/sys/embunit/TextOutputter.c index 9cc4059910..1cc2045cce 100644 --- a/sys/embunit/TextOutputter.c +++ b/sys/embunit/TextOutputter.c @@ -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); } } diff --git a/sys/embunit/XMLOutputter.c b/sys/embunit/XMLOutputter.c index 2cf5ff77dd..5f5a714a27 100644 --- a/sys/embunit/XMLOutputter.c +++ b/sys/embunit/XMLOutputter.c @@ -40,55 +40,55 @@ static char *stylesheet_; static void XMLOutputter_printHeader(OutputterRef self) { (void)self; - fprintf(stdout,"\n"); + printf("\n"); if (stylesheet_) - fprintf(stdout,"\n",stylesheet_); - fprintf(stdout,"\n"); + printf("\n",stylesheet_); + printf("\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,"\n",Test_name(test)); + printf("\n",Test_name(test)); } static void XMLOutputter_printSuccessful(OutputterRef self,TestRef test,int runCount) { (void)self; - fprintf(stdout,"\n",runCount); - fprintf(stdout,"%s\n",Test_name(test)); - fprintf(stdout,"\n"); + printf("\n",runCount); + printf("%s\n",Test_name(test)); + printf("\n"); } static void XMLOutputter_printFailure(OutputterRef self,TestRef test,char *msg,int line,char *file,int runCount) { (void)self; - fprintf(stdout,"\n",runCount); - fprintf(stdout,"%s\n",Test_name(test)); - fprintf(stdout,"\n"); - fprintf(stdout,"%s\n",file); - fprintf(stdout,"%d\n",line); - fprintf(stdout,"\n"); - fprintf(stdout,"%s\n",msg); - fprintf(stdout,"\n"); + printf("\n",runCount); + printf("%s\n",Test_name(test)); + printf("\n"); + printf("%s\n",file); + printf("%d\n",line); + printf("\n"); + printf("%s\n",msg); + printf("\n"); } static void XMLOutputter_printStatistics(OutputterRef self,TestResultRef result) { (void)self; - fprintf(stdout,"\n"); - fprintf(stdout,"%d\n",result->runCount); + printf("\n"); + printf("%d\n",result->runCount); if (result->failureCount) { - fprintf(stdout,"%d\n",result->failureCount); + printf("%d\n",result->failureCount); } - fprintf(stdout,"\n"); - fprintf(stdout,"\n"); + printf("\n"); + printf("\n"); } static const OutputterImplement XMLOutputterImplement = {