develooper Front page | perl.perl5.porters | Postings from March 2006

Re: Making IO::Socket pass test on Win32

Thread Previous | Thread Next
Steve Hay
March 31, 2006 02:58
Re: Making IO::Socket pass test on Win32
Message ID:
demerphq wrote:
> diff -burd d:\.cpan\build\IO-1.23\/t/io_sock.t IO-1.23/t/io_sock.t
> --- d:\.cpan\build\IO-1.23\/t/io_sock.t	2006-03-26 04:27:13.000000000 +0200
> +++ IO-1.23/t/io_sock.t	2006-03-26 14:47:08.034134600 +0200
> @@ -17,7 +17,7 @@
>      elsif ($ENV{PERL_CORE} and $Config{'extensions'} !~ /\bIO\b/) {
>  	$reason = 'IO extension unavailable';
>      }
> -    elsif (! $Config{'d_fork'}) {
> +    elsif (! $Config{'d_fork'} && $^O ne "MSWin32" ) {
>  	$reason = 'no fork';
>      }
>      if ($reason) {

This bit makes io_sock.t fail tests 2-26 when using a non-threaded perl 
on Win32:

C:\p5p\bleadperl\t>.\perl -I..\lib ..\ext\IO\t\io_sock.t
ok 1
The fork function is unimplemented at ..\ext\IO\t\io_sock.t line 59.

Radan Computational Ltd.

The information contained in this message and any files transmitted with it are confidential and intended for the addressee(s) only. If you have received this message in error or there are any problems, please notify the sender immediately. The unauthorized use, disclosure, copying or alteration of this message is strictly forbidden. Note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Radan Computational Ltd. The recipient(s) of this message should check it and any attached files for viruses: Radan Computational will accept no liability for any damage caused by any virus transmitted by this email.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About