From: Nicholas Clark Date: Tue, 5 Apr 2005 21:16:01 +0000 (+0000) Subject: Tests need to skip if there is no Encode configured. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=5b279f8b9f38ac6332e7ddbcac2b8bf949abe47c;p=p5sagit%2Fp5-mst-13.2.git Tests need to skip if there is no Encode configured. p4raw-id: //depot/perl@24169 --- diff --git a/lib/encoding/warnings/t/1-warning.t b/lib/encoding/warnings/t/1-warning.t index d2b4af9..c7525ae 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 1047169..4fc16a1 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 }