From: Gurusamy Sarathy Date: Tue, 21 Mar 2000 02:46:01 +0000 (+0000) Subject: test fails when sockets not available (from Yitzchak Scott-Thoennes) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=baba61acfed8013061d8c7012efc98fa91896d05;p=p5sagit%2Fp5-mst-13.2.git test fails when sockets not available (from Yitzchak Scott-Thoennes) p4raw-id: //depot/perl@5848 --- diff --git a/t/lib/io_unix.t b/t/lib/io_unix.t index 62569a5..247647a 100644 --- a/t/lib/io_unix.t +++ b/t/lib/io_unix.t @@ -5,11 +5,6 @@ BEGIN { chdir 't' if -d 't'; unshift @INC, '../lib' if -d '../lib'; } - # ``use IO::Socket'' executes too early below in the os2 block - if ($^O eq 'dos') { - print "1..0 # Skip: no fork\n"; - exit 0; - } } use Config; @@ -27,7 +22,7 @@ BEGIN { $reason = 'IO extension unavailable'; } elsif ($^O eq 'os2') { - use IO::Socket; + require IO::Socket; eval {IO::Socket::pack_sockaddr_un('/tmp/foo') || 1} or $@ !~ /not implemented/ or