1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/embunit: return failure state in TestRunner_end()

This commit is contained in:
Benjamin Valentin 2024-03-04 14:14:33 +01:00
parent da0298992e
commit a613ff5831
2 changed files with 4 additions and 2 deletions

View File

@ -99,7 +99,7 @@ void TestRunner_runTest(Test* test)
Test_run(test, &result_);
}
void TestRunner_end(void)
int TestRunner_end(void)
{
char buf[16];
if (result_.failureCount) {
@ -118,4 +118,6 @@ void TestRunner_end(void)
stdimpl_print(buf);
stdimpl_print(" tests)\n");
}
return TestRunnerHadErrors;
}

View File

@ -41,7 +41,7 @@ extern "C" {
void TestRunner_start(void);
void TestRunner_runTest(Test* test);
void TestRunner_end(void);
int TestRunner_end(void);
extern int TestRunnerHadErrors;