summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-05-03 03:52:08 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-05-03 03:52:08 +0000
commit7374aa6104ced9d387094f3746ef289bdc8bd024 (patch)
tree75662361ec8a6ce7868ec954b10697ba59771267 /t
parentee1db23eeaa208908244ed9e479fed560e28d90a (diff)
downloadperl-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.t9
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;