From 6eda3e9c27781dec369542a9b20cba7c3d832a5e Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Thu, 19 Dec 2013 22:09:30 -0300 Subject: [PATCH] isolationtester: Ensure stderr is unbuffered, too --- src/test/isolation/isolationtester.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/test/isolation/isolationtester.c b/src/test/isolation/isolationtester.c index 8dc0f66637..e936c01532 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 -- 2.40.0