From: Rafael Garcia-Suarez Date: Mon, 25 Jun 2007 10:23:47 +0000 (+0000) Subject: That test too should be skipped in the core on EBCDIC platforms X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c465390a908eeeb2981ab2e0338744d1a8eaba86;p=p5sagit%2Fp5-mst-13.2.git That test too should be skipped in the core on EBCDIC platforms (because it requires Convert::EBCDIC) p4raw-id: //depot/perl@31460 --- diff --git a/lib/Net/t/datasend.t b/lib/Net/t/datasend.t index 0786709..96b5b7c 100644 --- a/lib/Net/t/datasend.t +++ b/lib/Net/t/datasend.t @@ -1,6 +1,19 @@ #!./perl -w BEGIN { + if ($ENV{PERL_CORE}) { + chdir 't' if -d 't'; + @INC = '../lib'; + } + if (!eval "require Socket") { + print "1..0 # no Socket\n"; exit 0; + } + if (ord('A') == 193 && !eval "require Convert::EBCDIC") { + print "1..0 # EBCDIC but no Convert::EBCDIC\n"; exit 0; + } +} + +BEGIN { package Foo; use IO::File;