From ef936e72a2e4f99aeba73616def926aa79ad7733 Mon Sep 17 00:00:00 2001 From: "Pavel I. Kryukov" Date: Mon, 16 Dec 2019 12:19:30 +0300 Subject: [PATCH] cgtest: return non-zero if any test failed (cherry picked from commit 83408f928de23f033db211eb107825631bbcb390) --- cmdgen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmdgen.c b/cmdgen.c index 8b39f1d8..5c17ce2b 100644 --- a/cmdgen.c +++ b/cmdgen.c @@ -1679,7 +1679,7 @@ int main(int argc, char **argv) test(1, "puttygen", "-C", "spurious-new-comment", pubfilename, NULL); } printf("%d passes, %d fails\n", passes, fails); - return 0; + return fails == 0 ? 0 : 1; } #endif