Skip site navigation (1) Skip section navigation (2)

Re: Win32 regression tests

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-hackers-win32 <pgsql-hackers-win32(at)postgresql(dot)org>
Subject: Re: Win32 regression tests
Date: 2004-02-05 06:22:14
Message-ID: 4021E116.2000807@dunslane.net (view raw or flat)
Thread:
Lists: pgsql-hackers-win32

Tom Lane wrote:

>Claudio Natoli <claudio(dot)natoli(at)memetrics(dot)com> writes:
>  
>
>>However, a number of tests fail purely because, for some reason, ERROR
>>messages seem to get printed out at the end of the test, instead of where
>>expected, and sometimes with an extra blank line. I've included a few
>>examples below.
>>    
>>
>
>  
>
>>Anyway care to hazard a guess as to what the cause could be, and how to
>>correct?
>>    
>>
>
>Lack of fflush(stderr) maybe?  On Unix systems stderr is line-buffered
>and so it's seldom necessary to fflush it, but perhaps Windows gets this
>wrong (yawn...).
>
>  
>
Or unbuffered. On Linux "man setbuf " says:

  The standard error stream stderr is always unbuffered by default.

Perhaps on Windows we should put a call to "setbuf(stderr,NULL)" 
somewhere right at the beginning of each program.

cheers

andrew



In response to

pgsql-hackers-win32 by date

Next:From: Claudio NatoliDate: 2004-02-05 06:34:50
Subject: Re: Win32 regression tests
Previous:From: Tom LaneDate: 2004-02-05 03:50:48
Subject: Re: Win32 regression tests

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group