summaryrefslogtreecommitdiff
path: root/ext/PerlIO
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-02-20 10:44:44 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-02-20 10:44:44 +0000
commit1481cd1a0344d3eb4d0dfa997b84545a205c3afa (patch)
treec2058143658229e9ef4acf1d06924c421220e60f /ext/PerlIO
parent43bd726c03df84f00c3dd8d8587f30fbdb1b8518 (diff)
downloadperl-1481cd1a0344d3eb4d0dfa997b84545a205c3afa.tar.gz
Skip test when Encode isn't built
(noticed by Jerry D. Hedden) p4raw-id: //depot/perl@30370
Diffstat (limited to 'ext/PerlIO')
-rw-r--r--ext/PerlIO/encoding/t/nolooping.t8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/PerlIO/encoding/t/nolooping.t b/ext/PerlIO/encoding/t/nolooping.t
index f3436ad9e9..846a24863b 100644
--- a/ext/PerlIO/encoding/t/nolooping.t
+++ b/ext/PerlIO/encoding/t/nolooping.t
@@ -1,5 +1,13 @@
#!perl -w
+BEGIN {
+ use Config;
+ if ($Config{extensions} !~ /\bEncode\b/) {
+ print "1..0 # Skip: no Encode\n";
+ exit 0;
+ }
+}
+
use Test::More tests => 1;
BEGIN {