Re: Win32 regression tests

Поиск
Список
Период
Сортировка
От Claudio Natoli
Тема Re: Win32 regression tests
Дата
Msg-id A02DEC4D1073D611BAE8525405FCCE2B55F2E3@harris.memetrics.local
обсуждение исходный текст
Ответ на Win32 regression tests  (Claudio Natoli <claudio.natoli@memetrics.com>)
Список pgsql-hackers-win32
Tom Lane writes:
> Claudio Natoli <claudio.natoli@memetrics.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?

Thanks for the hint. Lead me to try dropping in setvbuf(...,_IONBF,...)
calls, but to no avail.

Turns out it is another ming buffering issue, 'cause if I, say, run "make
installcheck" from Cygwin (with the postmaster running from either the Win32
command prompt, or mingw/msys), there's no such problem. Only occurs when
you run "make (install)check" from within ming/msys itself.

This is going to be really annoying for anyone developing the win32 port, at
least for as long as ming has these issues [sigh].

[On the plus side, the tests are running. "41 of 94 tests failed". Ok ok,
not great, until you do a quick scan over the results and see that almost
all of those that fail are for known issues; minor ones like %g/%e +
localtime differences, and major ones like deadlocking on rename/unlink]


> On Unix systems stderr is line-buffered and so it's seldom necessary to
> fflush it, but perhaps Windows gets this wrong (yawn...).

Then I guess you'll see some humour in the following, straight off the MSDN
for setvbuf:

_IOLBF
    For some systems, this provides line buffering. However, for Win32, the
behavior is the same as _IOFBF - Full Buffering.

Again, thanks for the hint :-)
Claudio

---
Certain disclaimers and policies apply to all email sent from Memetrics.
For the full text of these disclaimers and policies see
<a
href="http://www.memetrics.com/emailpolicy.html">http://www.memetrics.com/em
ailpolicy.html</a>

В списке pgsql-hackers-win32 по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: Win32 regression tests
Следующее
От: "Magnus Hagander"
Дата:
Сообщение: Re: win32 signals, part 4