Commit 63d283ec authored by Andrew Dunstan's avatar Andrew Dunstan

Flush stderr and stdout in isolation tester.

This is a possibly vain attempt to fix a buffering issue
observed for some MSVC builds.
parent 7d6b8f71
...@@ -70,6 +70,8 @@ exit_nicely(void) ...@@ -70,6 +70,8 @@ exit_nicely(void)
for (i = 0; i < nconns; i++) for (i = 0; i < nconns; i++)
PQfinish(conns[i]); PQfinish(conns[i]);
fflush(stderr);
fflush(stdout);
exit(1); exit(1);
} }
...@@ -283,6 +285,8 @@ main(int argc, char **argv) ...@@ -283,6 +285,8 @@ main(int argc, char **argv)
/* Clean up and exit */ /* Clean up and exit */
for (i = 0; i < nconns; i++) for (i = 0; i < nconns; i++)
PQfinish(conns[i]); PQfinish(conns[i]);
fflush(stderr);
fflush(stdout);
return 0; return 0;
} }
......
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