(Retracted by #8395.)
[p5sagit/p5-mst-13.2.git] / t / lib / io_unix.t
index 62569a5..2f6def0 100644 (file)
@@ -3,12 +3,7 @@
 BEGIN {
     unless(grep /blib/, @INC) {
         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;
+        @INC = '../lib';
     }
 }
 
@@ -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