From: H.Merijn Brand Date: Tue, 29 Dec 2009 16:17:21 +0000 (+0100) Subject: Guard open.t against Encode not being available X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a80e323fbf3c4c14f0fce8c693c9a91eb9d69497;p=p5sagit%2Fp5-mst-13.2.git Guard open.t against Encode not being available Similar changes should/could be made to cpan/CGI/t/utf8.t and ext/XS-APItest/t/utf16_to_utf8.t Reasoning is my smokes being built without Encode, because it takes too long. --- diff --git a/lib/open.t b/lib/open.t index b062ff3..1bf7dca 100644 --- a/lib/open.t +++ b/lib/open.t @@ -181,6 +181,7 @@ EOE } SKIP: { skip("no perlio", 2) unless (find PerlIO::Layer 'perlio'); + skip("no Encode", 2) unless $Config{extensions} =~ m{\bEncode\b}; eval q[use Encode::Alias;use open ":std", ":locale"]; is($@, '', 'can use :std and :locale');