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:
parent
da0298992e
commit
a613ff5831
@ -99,7 +99,7 @@ void TestRunner_runTest(Test* test)
|
|||||||
Test_run(test, &result_);
|
Test_run(test, &result_);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TestRunner_end(void)
|
int TestRunner_end(void)
|
||||||
{
|
{
|
||||||
char buf[16];
|
char buf[16];
|
||||||
if (result_.failureCount) {
|
if (result_.failureCount) {
|
||||||
@ -118,4 +118,6 @@ void TestRunner_end(void)
|
|||||||
stdimpl_print(buf);
|
stdimpl_print(buf);
|
||||||
stdimpl_print(" tests)\n");
|
stdimpl_print(" tests)\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return TestRunnerHadErrors;
|
||||||
}
|
}
|
||||||
|
@ -41,7 +41,7 @@ extern "C" {
|
|||||||
|
|
||||||
void TestRunner_start(void);
|
void TestRunner_start(void);
|
||||||
void TestRunner_runTest(Test* test);
|
void TestRunner_runTest(Test* test);
|
||||||
void TestRunner_end(void);
|
int TestRunner_end(void);
|
||||||
|
|
||||||
extern int TestRunnerHadErrors;
|
extern int TestRunnerHadErrors;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user