develooper Front page | perl.perl5.porters | Postings from February 2003

Re: [perl #21314] make test: ext/IO/lib/IO/t/io_poll FAILED at test 3

Thread Previous | Thread Next
From:
schwern
Date:
February 20, 2003 08:06
Subject:
Re: [perl #21314] make test: ext/IO/lib/IO/t/io_poll FAILED at test 3
Message ID:
20030220080617.B18392@ttul.org
On Thu, Feb 20, 2003 at 09:14:38AM -0000, Hiroshi Kunimatsu wrote:
> But, individual tests seems to be ok;
> 
> $ cd t
> $ export PERL_CORE=1
> $ ./perl -I../lib ../ext/IO/lib/IO/t/io_poll.t
> 1..10
> ok 1
> ok 2
> ok 3

Test #3 checks if IO::Poll->poll is working on STDOUT.  When the test
is run as "make test" STDOUT is attached to a pipe.  When run individually
as above STDOUT is not piped.  This likely effected the test.

If you run:
./perl -I../lib ../ext/IO/lib/IO/t/io_poll.t | cat
then STDOUT will be to a pipe and the test will probably fail.


> I have never heard the word 'poll'.

poll() is a variation on select().  You use it with non-blocking IO to
check if there's been any activity on a filehandle.  Its kind of obscure.

From the Linux poll(2) man page:

NAME
       poll - wait for some event on a file descriptor

SYNOPSIS
       #include <sys/poll.h>

       int poll(struct pollfd *ufds, unsigned int nfds, int timeout);



> Is there any way to install Perl 

Sure, you can just ignore the failure and install it.  Just be aware that
IO::Poll will have problems dealing with STDOUT when its piped.  Its not a
critical problem, though I'm sure other people here would like to work with
you to fix it.


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About