From: Jarkko Hietaniemi Date: Tue, 27 Nov 2001 00:55:04 +0000 (+0000) Subject: If in EBCDIC but no Convert::EBCDIC X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8b14f0338462a6a15a2f29c1228402d23ceb7d48;p=p5sagit%2Fp5-mst-13.2.git If in EBCDIC but no Convert::EBCDIC the libnet tests will all fail. p4raw-id: //depot/perl@13297 --- diff --git a/lib/Net/t/config.t b/lib/Net/t/config.t index 4643971..560addb 100644 --- a/lib/Net/t/config.t +++ b/lib/Net/t/config.t @@ -5,6 +5,9 @@ BEGIN { chdir 't' if -d 't'; @INC = '../lib'; } + if (ord('A') == 193 && !eval "require Convert::EBCDIC") { + print "1..0 # EBCDIC but no Convert::EBCDIC\n"; exit 0; + } $INC{'Socket.pm'} = 1; } diff --git a/lib/Net/t/ftp.t b/lib/Net/t/ftp.t index f0d0c11..be62458 100644 --- a/lib/Net/t/ftp.t +++ b/lib/Net/t/ftp.t @@ -5,6 +5,9 @@ BEGIN { chdir 't' if -d 't'; @INC = '../lib'; } + if (ord('A') == 193 && !eval "require Convert::EBCDIC") { + print "1..0 # EBCDIC but no Convert::EBCDIC\n"; exit 0; + } } use Net::Config; diff --git a/lib/Net/t/hostname.t b/lib/Net/t/hostname.t index 8c37472..2569722 100644 --- a/lib/Net/t/hostname.t +++ b/lib/Net/t/hostname.t @@ -5,6 +5,9 @@ BEGIN { chdir 't' if -d 't'; @INC = '../lib'; } + if (ord('A') == 193 && !eval "require Convert::EBCDIC") { + print "1..0 # EBCDIC but no Convert::EBCDIC\n"; exit 0; + } } use Net::Domain qw(hostname domainname hostdomain); diff --git a/lib/Net/t/netrc.t b/lib/Net/t/netrc.t index a4dd778..e87388f 100644 --- a/lib/Net/t/netrc.t +++ b/lib/Net/t/netrc.t @@ -5,6 +5,9 @@ BEGIN { chdir 't' if -d 't'; @INC = '../lib'; } + if (ord('A') == 193 && !eval "require Convert::EBCDIC") { + print "1..0 # EBCDIC but no Convert::EBCDIC\n"; exit 0; + } } use strict; diff --git a/lib/Net/t/nntp.t b/lib/Net/t/nntp.t index 6b905e3..ffeb123 100644 --- a/lib/Net/t/nntp.t +++ b/lib/Net/t/nntp.t @@ -5,6 +5,9 @@ BEGIN { chdir 't' if -d 't'; @INC = '../lib'; } + if (ord('A') == 193 && !eval "require Convert::EBCDIC") { + print "1..0 # EBCDIC but no Convert::EBCDIC\n"; exit 0; + } } use Net::Config; diff --git a/lib/Net/t/require.t b/lib/Net/t/require.t index 82b0472..95dea87 100644 --- a/lib/Net/t/require.t +++ b/lib/Net/t/require.t @@ -5,6 +5,9 @@ BEGIN { chdir 't' if -d 't'; @INC = '../lib'; } + if (ord('A') == 193 && !eval "require Convert::EBCDIC") { + print "1..0 # EBCDIC but no Convert::EBCDIC\n"; exit 0; + } } print "1..9\n"; diff --git a/lib/Net/t/smtp.t b/lib/Net/t/smtp.t index a137a36..eb52f7c 100644 --- a/lib/Net/t/smtp.t +++ b/lib/Net/t/smtp.t @@ -5,6 +5,9 @@ BEGIN { chdir 't' if -d 't'; @INC = '../lib'; } + if (ord('A') == 193 && !eval "require Convert::EBCDIC") { + print "1..0 # EBCDIC but no Convert::EBCDIC\n"; exit 0; + } } use Net::Config; diff --git a/lib/Net/t/time.t b/lib/Net/t/time.t index 2239fba..fb169c2 100644 --- a/lib/Net/t/time.t +++ b/lib/Net/t/time.t @@ -5,6 +5,9 @@ BEGIN { chdir 't' if -d 't'; @INC = '../lib'; } + if (ord('A') == 193 && !eval "require Convert::EBCDIC") { + print "1..0 # EBCDIC but no Convert::EBCDIC\n"; exit 0; + } $INC{'IO/Socket.pm'} = 1; $INC{'IO/Select.pm'} = 1; $INC{'IO/Socket/INET.pm'} = 1;