summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorTom Hukins <tom@eborcom.com>2017-10-11 19:37:02 +0000
committerAaron Crane <arc@cpan.org>2017-10-12 10:23:21 +0200
commita68a847ef5e609337bd3f538810884d3b918bfb8 (patch)
treeae3a8e5e83e288059fbc20e1b66238deaf307115 /ext
parentf9c0e2d5f0d4ed83cacd61ba8112cc84d5f06aa5 (diff)
downloadperl-a68a847ef5e609337bd3f538810884d3b918bfb8.tar.gz
perl no longer builds on MacOS Classic
Diffstat (limited to 'ext')
-rw-r--r--ext/NDBM_File/Makefile.PL1
-rw-r--r--ext/POSIX/t/posix.t98
-rw-r--r--ext/POSIX/t/sigaction.t2
-rw-r--r--ext/POSIX/t/time.t2
4 files changed, 47 insertions, 56 deletions
diff --git a/ext/NDBM_File/Makefile.PL b/ext/NDBM_File/Makefile.PL
index a8adbf0121..fe2cb407f5 100644
--- a/ext/NDBM_File/Makefile.PL
+++ b/ext/NDBM_File/Makefile.PL
@@ -4,5 +4,4 @@ WriteMakefile(
LIBS => ["-L/usr/local/lib -lndbm", "-ldbm -lucb"],
XSPROTOARG => '-noprototypes', # XXX remove later?
VERSION_FROM => 'NDBM_File.pm',
- INC => ($^O eq "MacOS" ? "-i ::::db:include" : "")
);
diff --git a/ext/POSIX/t/posix.t b/ext/POSIX/t/posix.t
index 7b456c1b04..1b2dd4010b 100644
--- a/ext/POSIX/t/posix.t
+++ b/ext/POSIX/t/posix.t
@@ -25,7 +25,6 @@ $| = 1;
$Is_W32 = $^O eq 'MSWin32';
$Is_Dos = $^O eq 'dos';
-$Is_MacOS = $^O eq 'MacOS';
$Is_VMS = $^O eq 'VMS';
$Is_OS2 = $^O eq 'os2';
$Is_UWin = $^O eq 'uwin';
@@ -91,55 +90,51 @@ SKIP: {
ok(! $sigset->ismember(1), 'POSIX::SigSet->delset' );
ok( $sigset->ismember(3), 'POSIX::SigSet->ismember' );
- SKIP: {
- skip("no kill() support on Mac OS", 4) if $Is_MacOS;
-
- my $sigint_called = 0;
-
- my $mask = new POSIX::SigSet &SIGINT;
- my $action = new POSIX::SigAction 'main::SigHUP', $mask, 0;
- sigaction(&SIGHUP, $action);
- $SIG{'INT'} = 'SigINT';
-
- # At least OpenBSD/i386 3.3 is okay, as is NetBSD 1.5.
- # But not NetBSD 1.6 & 1.6.1: the test makes perl crash.
- # So the kill() must not be done with this config in order to
- # finish the test.
- # For others (darwin & freebsd), let the test fail without crashing.
- # the test passes at least from freebsd 8.1
- my $todo = $^O eq 'netbsd' && $Config{osvers}=~/^1\.6/;
- my $why_todo = "# TODO $^O $Config{osvers} seems to lose blocked signals";
- if (!$todo) {
- kill 'HUP', $$;
- } else {
- print "not ok 9 - sigaction SIGHUP ",$why_todo,"\n";
- print "not ok 10 - sig mask delayed SIGINT ",$why_todo,"\n";
- }
- sleep 1;
-
- $todo = 1 if ($^O eq 'freebsd' && $Config{osvers} < 8)
- || ($^O eq 'darwin' && $Config{osvers} < '6.6');
- printf "%s 11 - masked SIGINT received %s\n",
- $sigint_called ? "ok" : "not ok",
- $todo ? $why_todo : '';
-
- print "ok 12 - signal masks successful\n";
-
- sub SigHUP {
- print "ok 9 - sigaction SIGHUP\n";
- kill 'INT', $$;
- sleep 2;
- print "ok 10 - sig mask delayed SIGINT\n";
- }
+ my $sigint_called = 0;
+
+ my $mask = new POSIX::SigSet &SIGINT;
+ my $action = new POSIX::SigAction 'main::SigHUP', $mask, 0;
+ sigaction(&SIGHUP, $action);
+ $SIG{'INT'} = 'SigINT';
+
+ # At least OpenBSD/i386 3.3 is okay, as is NetBSD 1.5.
+ # But not NetBSD 1.6 & 1.6.1: the test makes perl crash.
+ # So the kill() must not be done with this config in order to
+ # finish the test.
+ # For others (darwin & freebsd), let the test fail without crashing.
+ # the test passes at least from freebsd 8.1
+ my $todo = $^O eq 'netbsd' && $Config{osvers}=~/^1\.6/;
+ my $why_todo = "# TODO $^O $Config{osvers} seems to lose blocked signals";
+ if (!$todo) {
+ kill 'HUP', $$;
+ } else {
+ print "not ok 9 - sigaction SIGHUP ",$why_todo,"\n";
+ print "not ok 10 - sig mask delayed SIGINT ",$why_todo,"\n";
+ }
+ sleep 1;
- sub SigINT {
- $sigint_called++;
- }
+ $todo = 1 if ($^O eq 'freebsd' && $Config{osvers} < 8)
+ || ($^O eq 'darwin' && $Config{osvers} < '6.6');
+ printf "%s 11 - masked SIGINT received %s\n",
+ $sigint_called ? "ok" : "not ok",
+ $todo ? $why_todo : '';
- # The order of the above tests is very important, so
- # we use literal prints and hard coded numbers.
- next_test() for 1..4;
+ print "ok 12 - signal masks successful\n";
+
+ sub SigHUP {
+ print "ok 9 - sigaction SIGHUP\n";
+ kill 'INT', $$;
+ sleep 2;
+ print "ok 10 - sig mask delayed SIGINT\n";
+ }
+
+ sub SigINT {
+ $sigint_called++;
}
+
+ # The order of the above tests is very important, so
+ # we use literal prints and hard coded numbers.
+ next_test() for 1..4;
}
SKIP: {
@@ -283,11 +278,8 @@ try_strftime("Fri Mar 31 00:00:00 2000 091", 0,0,0, 31,2,100);
}
}
-SKIP: {
- skip("no kill() support on Mac OS", 1) if $Is_MacOS;
- is (eval "kill 0", 0, "check we have CORE::kill")
- or print "\$\@ is " . _qq($@) . "\n";
-}
+is (eval "kill 0", 0, "check we have CORE::kill")
+ or print "\$\@ is " . _qq($@) . "\n";
# Check that we can import the POSIX kill routine
POSIX->import ('kill');
@@ -415,7 +407,7 @@ if ($^O eq 'vos') {
} else {
$| = 0;
# The following line assumes buffered output, which may be not true:
- print '@#!*$@(!@#$' unless ($Is_MacOS || $Is_OS2 || $Is_UWin || $Is_OS390 ||
+ print '@#!*$@(!@#$' unless ($Is_OS2 || $Is_UWin || $Is_OS390 ||
$Is_VMS ||
(defined $ENV{PERLIO} &&
$ENV{PERLIO} eq 'unix' &&
diff --git a/ext/POSIX/t/sigaction.t b/ext/POSIX/t/sigaction.t
index 99bbb9f531..0bbc4368d4 100644
--- a/ext/POSIX/t/sigaction.t
+++ b/ext/POSIX/t/sigaction.t
@@ -5,7 +5,7 @@ BEGIN{
use Config;
eval 'use POSIX';
if($@ || $^O eq 'MSWin32' || $^O eq 'NetWare' || $^O eq 'dos' ||
- $^O eq 'MacOS' || ($^O eq 'VMS' && !$Config{'d_sigaction'})) {
+ ($^O eq 'VMS' && !$Config{'d_sigaction'})) {
print "1..0\n";
exit 0;
}
diff --git a/ext/POSIX/t/time.t b/ext/POSIX/t/time.t
index 6a906e031d..4b10eb8335 100644
--- a/ext/POSIX/t/time.t
+++ b/ext/POSIX/t/time.t
@@ -22,7 +22,7 @@ SKIP: {
# actually do anything. Cygwin works in some places, but not others. The
# other Win32's below are guesses.
skip "No tzset()", 2
- if $^O eq "MacOS" || $^O eq "VMS" || $^O eq "cygwin" || $^O eq "djgpp" ||
+ if $^O eq "VMS" || $^O eq "cygwin" || $^O eq "djgpp" ||
$^O eq "MSWin32" || $^O eq "dos" || $^O eq "interix";
tzset();
my @tzname = tzname();