From 40e471f1a2660e117688a8def62c6c010f391a01 Mon Sep 17 00:00:00 2001 From: hasslesstech Date: Thu, 12 Dec 2024 20:04:06 +0200 Subject: [PATCH] tester: return 1 if at least one test has failed --- src/tester.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tester.c b/src/tester.c index c96ef8e..da5f11e 100644 --- a/src/tester.c +++ b/src/tester.c @@ -236,4 +236,6 @@ int main(int argc, char **argv) printf("\nSummary: %d passed, %d failed\n", success_tests_counter, failed_tests_counter); close(f); + + return !(!failed_tests_counter); }