From 1af51985dda9fbb118121be622bc0296269c18dc Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Thu, 1 Aug 2013 12:01:57 +0100 Subject: [PATCH] Fail unit test if at least one test fails --- slre.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slre.c b/slre.c index 57b0527..16e2a9e 100644 --- a/slre.c +++ b/slre.c @@ -463,6 +463,6 @@ int main(void) { static_failed_tests > 0 ? "FAILED" : "PASSED", static_total_tests, static_failed_tests); - return EXIT_SUCCESS; + return static_failed_tests == 0 ? EXIT_SUCCESS : EXIT_FAILURE; } #endif /* SLRE_UNIT_TEST */