Also needs skipping if PerlIO::via not built
Nicholas Clark [Fri, 18 Jun 2004 13:44:27 +0000 (13:44 +0000)]
p4raw-id: //depot/perl@22957

lib/PerlIO/via/t/QuotedPrint.t

index b379f66..4774af3 100644 (file)
@@ -7,6 +7,11 @@ BEGIN {                                # Magic Perl CORE pragma
         print "1..0 # Skip: PerlIO not used\n";
         exit 0;
     }
+    require Config;
+    if (($Config::Config{'extensions'} !~ /\bPerlIO::via\b/) ){
+        print "1..0 # Skip -- Perl configured without PerlIO::via module\n";
+        exit 0;
+    }
     if (ord("A") == 193) {
         print "1..0 # Skip: EBCDIC\n";
     }