Not ideal, but skip all of IO's tests if Socket is not built.
authorNicholas Clark <nick@ccl4.org>
Fri, 18 Jun 2004 13:19:16 +0000 (13:19 +0000)
committerNicholas Clark <nick@ccl4.org>
Fri, 18 Jun 2004 13:19:16 +0000 (13:19 +0000)
p4raw-id: //depot/perl@22955

ext/IO/t/IO.t

index a68e55c..e30fd50 100644 (file)
@@ -4,6 +4,11 @@ BEGIN
 {
        chdir 't' if -d 't';
        @INC = '../lib';
+       require config;
+       if ($Config::Config{'extensions'} !~ /\bSocket\b/) {
+               print "1..0 # Skip: Socket not built - IO.pm uses Socket";
+               exit 0;
+       }
 }
 
 use strict;