From 63d283ecd0bc5078594a64dfbae29276072cdf45 Mon Sep 17 00:00:00 2001 From: Andrew Dunstan Date: Wed, 27 Feb 2013 19:13:07 -0500 Subject: [PATCH] Flush stderr and stdout in isolation tester. This is a possibly vain attempt to fix a buffering issue observed for some MSVC builds. --- src/test/isolation/isolationtester.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test/isolation/isolationtester.c b/src/test/isolation/isolationtester.c index 56cc7fea4f..9776df270a 100644 --- a/src/test/isolation/isolationtester.c +++ b/src/test/isolation/isolationtester.c @@ -70,6 +70,8 @@ exit_nicely(void) for (i = 0; i < nconns; i++) PQfinish(conns[i]); + fflush(stderr); + fflush(stdout); exit(1); } @@ -283,6 +285,8 @@ main(int argc, char **argv) /* Clean up and exit */ for (i = 0; i < nconns; i++) PQfinish(conns[i]); + fflush(stderr); + fflush(stdout); return 0; }