diff --git a/sys/embunit/TextUIRunner.c b/sys/embunit/TextUIRunner.c index 267faf946da9..9f8fd74da43f 100644 --- a/sys/embunit/TextUIRunner.c +++ b/sys/embunit/TextUIRunner.c @@ -101,7 +101,8 @@ void TextUIRunner_runTest(TestRef test) Outputter_printEndTest(outputterRef_,test); } -void TextUIRunner_end(void) +int TextUIRunner_end(void) { Outputter_printStatistics(outputterRef_,&result_); + return wasfailure_; } diff --git a/sys/include/embUnit/TextUIRunner.h b/sys/include/embUnit/TextUIRunner.h index 75892baa1107..c2a6d6fe1b29 100644 --- a/sys/include/embUnit/TextUIRunner.h +++ b/sys/include/embUnit/TextUIRunner.h @@ -47,7 +47,7 @@ void TextUIRunner_setOutputter(OutputterRef outputter); void TextUIRunner_startWithOutputter(OutputterRef outputter); void TextUIRunner_start(void); void TextUIRunner_runTest(TestRef test); -void TextUIRunner_end(void); +int TextUIRunner_end(void); #ifdef __cplusplus }