Commit bd09111f authored by Peter Eisentraut's avatar Peter Eisentraut

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

parent ac7a5a3f
......@@ -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);
......
This diff is collapsed.
......@@ -56,6 +56,5 @@ int regression_main(int argc, char *argv[],
init_function ifunc, test_function tfunc);
void add_stringlist_item(_stringlist ** listhead, const char *str);
PID_TYPE spawn_process(const char *cmdline);
void exit_nicely(int code);
void replace_string(char *string, char *replace, char *replacement);
bool file_exists(const char *file);
......@@ -77,7 +77,7 @@ psql_start_test(const char *testname,
{
fprintf(stderr, _("could not start process for test %s\n"),
testname);
exit_nicely(2);
exit(2);
}
return pid;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment