aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2013-12-19 22:09:30 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2013-12-19 22:09:30 -0300
commit6eda3e9c27781dec369542a9b20cba7c3d832a5e (patch)
treeb5c370ca0aef978e180a97d034c32ef344dbd025 /src
parent527fdd9df11eb338fdd372d16f62cd067de5204b (diff)
downloadpostgresql-6eda3e9c27781dec369542a9b20cba7c3d832a5e.tar.gz
postgresql-6eda3e9c27781dec369542a9b20cba7c3d832a5e.zip
isolationtester: Ensure stderr is unbuffered, too
Diffstat (limited to 'src')
-rw-r--r--src/test/isolation/isolationtester.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/isolation/isolationtester.c b/src/test/isolation/isolationtester.c
index 8dc0f66637b..e936c01532f 100644
--- a/src/test/isolation/isolationtester.c
+++ b/src/test/isolation/isolationtester.c
@@ -99,8 +99,12 @@ main(int argc, char **argv)
}
}
- /* make stdout unbuffered to match stderr */
+ /*
+ * Make stdout unbuffered to match stderr; and ensure stderr is unbuffered
+ * too, which it should already be everywhere except sometimes in Windows.
+ */
setbuf(stdout, NULL);
+ setbuf(stderr, NULL);
/*
* If the user supplies a non-option parameter on the command line, use it