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

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: win32 build and test issues


  • From: Andrew Dunstan <andrew(at)dunslane(dot)net>
  • To: pgsql-hackers-win32(at)postgresql(dot)org
  • Subject: Re: win32 build and test issues
  • Date: Fri, 30 Apr 2004 11:00:12 -0400
  • Message-id: <409269FC(dot)6010606(at)dunslane(dot)net>

Andrew Dunstan wrote:

The regression tests themselves seem to fail for the most
part in every configuration I have tried. The problem seems to be
mostly
buffering
issues - error messages appear out of order from what is expected. I
have not made sure what passes if we ignore that issue.
It is a MingW problem. Appears like there is not much we can do about
it. Refer to
http://momjian.postgresql.org/main/writings/pgsql/win32.html for
details on how to test outside of Ming.



I am not giving up on it yet. I have a couple of ideas I'm going to try.
Telling people they have to run the tests under cygwin is just horrible.


The following near the start of psql gets rid of the "errors out of order" problem:

#ifdef WIN32
 setvbuf(stderr,NULL,_IONBF,0);
#endif

Of course, this is the Unix default, and should be for Windows, too, but it's small compared with the other things that have been overcome.

I'm chasing down the other stuff - I suspect the extra lines might have some relation to binary/text mode for files.

I'm also thinking of creating a simple commandline interface for pqkill that can be used to make a clean shutdown.

cheers

andrew



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group