Skip to content

Commit

Permalink
Merge pull request #20535 from benpicco/TextUIRunner_end-return
Browse files Browse the repository at this point in the history
sys/embunit: return failure state in TextUIRunner_end()
  • Loading branch information
benpicco authored Apr 3, 2024
2 parents a9e7b44 + 127a290 commit 255a692
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 255a692

Please sign in to comment.