[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: poll test failure on Cygwin
From: |
Eric Blake |
Subject: |
Re: poll test failure on Cygwin |
Date: |
Mon, 15 Mar 2010 18:58:46 -0600 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.8) Gecko/20100301 Fedora/3.0.3-1.fc12 Lightning/1.0b1 Thunderbird/3.0.3 |
On 03/15/2010 12:57 AM, Paolo Bonzini wrote:
> On Sun, Mar 14, 2010 at 23:33, Bruno Haible <address@hidden> wrote:
>> Hi Paolo, Eric,
>>
>> On Cygwin 1.5.x the 'poll' test fails like this:
>>
>> Unconnected socket test... passed
>> Connected sockets test... passed
>> General socket test with fork... passed
>> Pipe test... failed (expecting POLLHUP after shutdown)
>> FAIL: test-poll.exe
>>
>> What do you think? Is Cygwin broken? Or is the test too strict?
Cygwin has known bugs in 1.5 on pipes, and different set of known bugs
in 1.7.1 on pipes. 1.7.2 will be released soon, which uses yet another
implementation for pipes, but which may also have bugs. Until we get a
stable cygwin solution for properly emulating Unix pipes on top of
Windows, it's hard to say what to expect from the gnulib side of things.
But yes, the cygwin developers are aware that gnulib provides a decent
testbed for whether pipes are working.
> On the other hand, poll/select are broken on Windows for pipes anyway
> (and not fixable), so they probably shouldn't be tested in
> test-poll/test-select.
Maybe for native Windows pipes, but cygwin can implement Unix pipes
using something other than native Windows pipes and get correct
semantics, insofar as pipes are only used between cygwin processes (but
the moment you cross between cygwin-to-non-cygwin, then you are
relegated to using native Windows pipes with all their flaws).
--
Eric Blake address@hidden +1-801-349-2682
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature