summaryrefslogtreecommitdiff
path: root/ext/PerlIO
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2004-06-18 13:24:13 +0000
committerNicholas Clark <nick@ccl4.org>2004-06-18 13:24:13 +0000
commit740dabb8e3624026adcaa7b5289cda916efa612a (patch)
treeb1862d0e9e57adaca202a3c4f774c6cb037c2f72 /ext/PerlIO
parentfedc905f6be3c931533a70fc7e1d4989201d1ae2 (diff)
downloadperl-740dabb8e3624026adcaa7b5289cda916efa612a.tar.gz
Skip tests when PerlIO::scalar and PerlIO::via aren't built
p4raw-id: //depot/perl@22956
Diffstat (limited to 'ext/PerlIO')
-rw-r--r--ext/PerlIO/t/scalar.t5
-rw-r--r--ext/PerlIO/t/via.t11
2 files changed, 13 insertions, 3 deletions
diff --git a/ext/PerlIO/t/scalar.t b/ext/PerlIO/t/scalar.t
index 01e12b047e..a4c479924b 100644
--- a/ext/PerlIO/t/scalar.t
+++ b/ext/PerlIO/t/scalar.t
@@ -7,6 +7,11 @@ BEGIN {
print "1..0 # Skip: not perlio\n";
exit 0;
}
+ require Config;
+ if (($Config::Config{'extensions'} !~ /\bPerlIO::scalar\b/) ){
+ print "1..0 # Skip -- Perl configured without PerlIO::scalar module\n";
+ exit 0;
+ }
}
$| = 1;
diff --git a/ext/PerlIO/t/via.t b/ext/PerlIO/t/via.t
index 124efbda68..0d819dfef3 100644
--- a/ext/PerlIO/t/via.t
+++ b/ext/PerlIO/t/via.t
@@ -1,8 +1,5 @@
#!./perl
-use strict;
-use warnings;
-
BEGIN {
chdir 't' if -d 't';
@INC = '../lib';
@@ -10,8 +7,16 @@ BEGIN {
print "1..0 # Skip: not perlio\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;
+ }
}
+use strict;
+use warnings;
+
my $tmp = "via$$";
use Test::More tests => 18;