1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 18:12:46 +01:00

Merge pull request #20535 from benpicco/TextUIRunner_end-return

sys/embunit: return failure state in TextUIRunner_end()
This commit is contained in:
benpicco 2024-04-03 13:56:21 +00:00 committed by GitHub
commit 255a6923c0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -101,7 +101,8 @@ void TextUIRunner_runTest(TestRef test)
Outputter_printEndTest(outputterRef_,test); Outputter_printEndTest(outputterRef_,test);
} }
void TextUIRunner_end(void) int TextUIRunner_end(void)
{ {
Outputter_printStatistics(outputterRef_,&result_); Outputter_printStatistics(outputterRef_,&result_);
return wasfailure_;
} }

View File

@ -47,7 +47,7 @@ void TextUIRunner_setOutputter(OutputterRef outputter);
void TextUIRunner_startWithOutputter(OutputterRef outputter); void TextUIRunner_startWithOutputter(OutputterRef outputter);
void TextUIRunner_start(void); void TextUIRunner_start(void);
void TextUIRunner_runTest(TestRef test); void TextUIRunner_runTest(TestRef test);
void TextUIRunner_end(void); int TextUIRunner_end(void);
#ifdef __cplusplus #ifdef __cplusplus
} }