projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d6b8f7
)
Flush stderr and stdout in isolation tester.
author
Andrew Dunstan
Thu, 28 Feb 2013 00:13:07 +0000
(19:13 -0500)
committer
Andrew Dunstan
Thu, 28 Feb 2013 00:13:07 +0000
(19:13 -0500)
This is a possibly vain attempt to fix a buffering issue
observed for some MSVC builds.
src/test/isolation/isolationtester.c
patch
|
blob
|
blame
|
history
diff --git
a/src/test/isolation/isolationtester.c
b/src/test/isolation/isolationtester.c
index 56cc7fea4f52756fdbfd01c50af729872561d7a9..9776df270a9482c7fc96406d2727fd8506d0745c 100644
(file)
--- 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;
}