summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-07-13 11:49:50 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-07-13 11:49:50 +0000
commit9ba8831b3b2daae9ee9c5fa1535754eb048b8f9b (patch)
tree17d60bcedbbab1edef8a193378261e4f756378c4
parent8e39ca144ad8b90102becb938a78d1b7993d0581 (diff)
downloadperl-9ba8831b3b2daae9ee9c5fa1535754eb048b8f9b.tar.gz
Test the encoding transform only iff we have PerlIO,
noticed by H. Merijn Brand. p4raw-id: //depot/perl@11348
-rw-r--r--ext/PerlIO/t/encoding.t11
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/PerlIO/t/encoding.t b/ext/PerlIO/t/encoding.t
index 342a315a54..debd2bc489 100644
--- a/ext/PerlIO/t/encoding.t
+++ b/ext/PerlIO/t/encoding.t
@@ -1,3 +1,14 @@
+#!./perl
+
+BEGIN {
+ chdir 't' if -d 't';
+ @INC = '../lib';
+ unless (find PerlIO::Layer 'perlio') {
+ print "1..0 # Skip: not perlio\n";
+ exit 0;
+ }
+}
+
print "1..8\n";
my $grk = "grk$$";