summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-04-05 21:16:01 +0000
committerNicholas Clark <nick@ccl4.org>2005-04-05 21:16:01 +0000
commit5b279f8b9f38ac6332e7ddbcac2b8bf949abe47c (patch)
tree7629cb91ae8bdd35cdeefb2147643c6e20cfd7e0 /lib
parent705bfa5f438d0b377898a48829d400d708246a4c (diff)
downloadperl-5b279f8b9f38ac6332e7ddbcac2b8bf949abe47c.tar.gz
Tests need to skip if there is no Encode configured.
p4raw-id: //depot/perl@24169
Diffstat (limited to 'lib')
-rw-r--r--lib/encoding/warnings/t/1-warning.t7
-rw-r--r--lib/encoding/warnings/t/2-fatal.t7
2 files changed, 14 insertions, 0 deletions
diff --git a/lib/encoding/warnings/t/1-warning.t b/lib/encoding/warnings/t/1-warning.t
index d2b4af9191..c7525aef1f 100644
--- a/lib/encoding/warnings/t/1-warning.t
+++ b/lib/encoding/warnings/t/1-warning.t
@@ -2,6 +2,13 @@
# $File: /member/local/autrijus/encoding-warnings//t/1-warning.t $ $Author: autrijus $
# $Revision: #5 $ $Change: 6145 $ $DateTime: 2004-07-16T03:49:06.717424Z $
+BEGIN {
+ unless (eval { require Encode } ) {
+ print "1..0 # Skip: no Encode\n";
+ exit 0;
+ }
+}
+
use Test;
BEGIN { plan tests => 2 }
diff --git a/lib/encoding/warnings/t/2-fatal.t b/lib/encoding/warnings/t/2-fatal.t
index 1047169a2f..4fc16a1df6 100644
--- a/lib/encoding/warnings/t/2-fatal.t
+++ b/lib/encoding/warnings/t/2-fatal.t
@@ -2,6 +2,13 @@
# $File: /member/local/autrijus/encoding-warnings/t/2-fatal.t $ $Author: autrijus $
# $Revision: #4 $ $Change: 1626 $ $DateTime: 2004-03-14T16:53:19.351256Z $
+BEGIN {
+ unless (eval { require Encode } ) {
+ print "1..0 # Skip: no Encode\n";
+ exit 0;
+ }
+}
+
use Test;
BEGIN { plan tests => 2 }