Skip to content

Commit

Permalink
sys/embunit: return failure state in TextUIRunner_end()
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco committed Apr 3, 2024
1 parent 4b3308c commit 127a290
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion sys/embunit/TextUIRunner.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ void TextUIRunner_runTest(TestRef test)
Outputter_printEndTest(outputterRef_,test);

Check warning on line 101 in sys/embunit/TextUIRunner.c

View workflow job for this annotation

GitHub Actions / static-tests

comma should be followed by whitespace
}

void TextUIRunner_end(void)
int TextUIRunner_end(void)
{
Outputter_printStatistics(outputterRef_,&result_);

Check warning on line 106 in sys/embunit/TextUIRunner.c

View workflow job for this annotation

GitHub Actions / static-tests

comma should be followed by whitespace
return wasfailure_;
}
2 changes: 1 addition & 1 deletion sys/include/embUnit/TextUIRunner.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 127a290

Please sign in to comment.