mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +00:00
cgtest: return non-zero if any test failed
(cherry picked from commit 83408f928d
)
This commit is contained in:
parent
9dd00020ae
commit
ef936e72a2
2
cmdgen.c
2
cmdgen.c
@ -1679,7 +1679,7 @@ int main(int argc, char **argv)
|
|||||||
test(1, "puttygen", "-C", "spurious-new-comment", pubfilename, NULL);
|
test(1, "puttygen", "-C", "spurious-new-comment", pubfilename, NULL);
|
||||||
}
|
}
|
||||||
printf("%d passes, %d fails\n", passes, fails);
|
printf("%d passes, %d fails\n", passes, fails);
|
||||||
return 0;
|
return fails == 0 ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user