1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

cgtest: return non-zero if any test failed

This commit is contained in:
Pavel I. Kryukov 2019-12-16 12:19:30 +03:00 committed by Simon Tatham
parent 056288677b
commit 83408f928d

View File

@ -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