mirror of
https://github.com/cesanta/slre.git
synced 2024-11-17 08:55:30 +00:00
Fail unit test if at least one test fails
This commit is contained in:
parent
f03345b2a9
commit
1af51985dd
2
slre.c
2
slre.c
@ -463,6 +463,6 @@ int main(void) {
|
|||||||
static_failed_tests > 0 ? "FAILED" : "PASSED",
|
static_failed_tests > 0 ? "FAILED" : "PASSED",
|
||||||
static_total_tests, static_failed_tests);
|
static_total_tests, static_failed_tests);
|
||||||
|
|
||||||
return EXIT_SUCCESS;
|
return static_failed_tests == 0 ? EXIT_SUCCESS : EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
#endif /* SLRE_UNIT_TEST */
|
#endif /* SLRE_UNIT_TEST */
|
||||||
|
Loading…
Reference in New Issue
Block a user