From: Jarkko Hietaniemi Date: Sun, 22 Jul 2001 00:22:51 +0000 (+0000) Subject: Typo in #11432. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=10de532f2de6c9fa844347ca793cbb021e0492b7;p=p5sagit%2Fp5-mst-13.2.git Typo in #11432. p4raw-id: //depot/perl@11435 --- diff --git a/ext/POSIX/POSIX.t b/ext/POSIX/POSIX.t index a5dc9b8..b388961 100755 --- a/ext/POSIX/POSIX.t +++ b/ext/POSIX/POSIX.t @@ -34,14 +34,14 @@ if ($Is_Dos) { print "ok $_ # skipped, no pipe() support on dos\n"; } } else { -@fds = POSIX::pipe(); -print $fds[0] > $testfd ? "ok 4\n" : "not ok 4\n"; -CORE::open($reader = \*READER, "<&=".$fds[0]); -CORE::open($writer = \*WRITER, ">&=".$fds[1]); -print $writer "ok 5\n"; -close $writer; -print <$reader>; -close $reader; + @fds = POSIX::pipe(); + print $fds[0] > $testfd ? "ok 4\n" : "not ok 4\n"; + CORE::open($reader = \*READER, "<&=".$fds[0]); + CORE::open($writer = \*WRITER, ">&=".$fds[1]); + print $writer "ok 5\n"; + close $writer; + print <$reader>; + close $reader; } if ($Is_W32 || $Is_Dos) { @@ -50,34 +50,35 @@ if ($Is_W32 || $Is_Dos) { } } else { -$sigset = new POSIX::SigSet 1,3; -delset $sigset 1; -if (!ismember $sigset 1) { print "ok 6\n" } -if ( ismember $sigset 3) { print "ok 7\n" } - -if ($Is_MacOS) { - for (8..11) { - print "ok $_ # skipped, no kill() support on Mac OS\n"; + $sigset = new POSIX::SigSet 1, 3; + delset $sigset 1; + if (!ismember $sigset 1) { print "ok 6\n" } + if ( ismember $sigset 3) { print "ok 7\n" } + + if ($Is_MacOS) { + for (8..11) { + print "ok $_ # skipped, no kill() support on Mac OS\n"; + } } -} -else { - $mask = new POSIX::SigSet &SIGINT; - $action = new POSIX::SigAction 'main::SigHUP', $mask, 0; - sigaction(&SIGHUP, $action); - $SIG{'INT'} = 'SigINT'; - kill 'HUP', $$; - sleep 1; - print "ok 11\n"; - - sub SigHUP { - print "ok 8\n"; - kill 'INT', $$; - sleep 2; - print "ok 9\n"; - } - - sub SigINT { - print "ok 10\n"; + else { + $mask = new POSIX::SigSet &SIGINT; + $action = new POSIX::SigAction 'main::SigHUP', $mask, 0; + sigaction(&SIGHUP, $action); + $SIG{'INT'} = 'SigINT'; + kill 'HUP', $$; + sleep 1; + print "ok 11\n"; + + sub SigHUP { + print "ok 8\n"; + kill 'INT', $$; + sleep 2; + print "ok 9\n"; + } + + sub SigINT { + print "ok 10\n"; + } } } @@ -170,8 +171,9 @@ try_strftime(27, "Fri Mar 31 00:00:00 2000 091", 0,0,0, 31,2,100); } $| = 0; -# The following line assumes buffered output, which may be not true with EMX: -print '@#!*$@(!@#$' unless ($Is_MacOS || $^O eq 'os2' || $^O eq 'uwin' || $^O eq 'os390'); +# The following line assumes buffered output, which may be not true: +print '@#!*$@(!@#$' unless ($Is_MacOS || $^O eq 'os2' || + $^O eq 'uwin' || $^O eq 'os390' || (defined $ENV{PERLIO} && $ENV{PERLIO} eq 'unix' && $Config::Config{useperlio}));