diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-05-03 03:52:08 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-05-03 03:52:08 +0000 |
commit | 7374aa6104ced9d387094f3746ef289bdc8bd024 (patch) | |
tree | 75662361ec8a6ce7868ec954b10697ba59771267 /t | |
parent | ee1db23eeaa208908244ed9e479fed560e28d90a (diff) | |
download | perl-7374aa6104ced9d387094f3746ef289bdc8bd024.tar.gz |
If no Socket should not try to test Net::
p4raw-id: //depot/perl@16365
Diffstat (limited to 't')
-rw-r--r-- | t/lib/1_compile.t | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/t/lib/1_compile.t b/t/lib/1_compile.t index 1af3ecf6e8..4918c3fb83 100644 --- a/t/lib/1_compile.t +++ b/t/lib/1_compile.t @@ -18,9 +18,12 @@ use File::Spec::Functions; my @Core_Modules = grep /\S/, <DATA>; chomp @Core_Modules; -# Two Net:: modules need the Convert::EBCDIC if in EBDCIC. -if (ord("A") != 193 || eval { require Convert::EBCDIC }) { - push @Core_Modules, qw(Net::Cmd Net::POP3); +if (eval { require Socket }) { + push @Core_Modules, qw(Net::Domain); + # Two Net:: modules need the Convert::EBCDIC if in EBDCIC. + if (ord("A") != 193 || eval { require Convert::EBCDIC }) { + push @Core_Modules, qw(Net::Cmd Net::POP3); + } } @Core_Modules = sort @Core_Modules; |