1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-15 19:21:59 +03:00

pg_regress: Replace exit_nicely() with exit() plus atexit() hook

This commit is contained in:
Peter Eisentraut
2012-01-02 22:08:04 +02:00
parent ac7a5a3f25
commit bd09111f1f
4 changed files with 50 additions and 60 deletions

View File

@ -34,13 +34,13 @@ ecpg_filter(const char *sourcefile, const char *outfile)
if (!s)
{
fprintf(stderr, "Could not open file %s for reading\n", sourcefile);
exit_nicely(2);
exit(2);
}
t = fopen(outfile, "w");
if (!t)
{
fprintf(stderr, "Could not open file %s for writing\n", outfile);
exit_nicely(2);
exit(2);
}
while (fgets(linebuf, LINEBUFSIZE, s))
@ -148,7 +148,7 @@ ecpg_start_test(const char *testname,
{
fprintf(stderr, _("could not start process for test %s\n"),
testname);
exit_nicely(2);
exit(2);
}
free(outfile_stdout);