summaryrefslogtreecommitdiff
path: root/ext/PerlIO/t/scalar.t
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/t/scalar.t
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/t/scalar.t')
-rw-r--r--ext/PerlIO/t/scalar.t5
1 files changed, 5 insertions, 0 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;