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) {
}
}
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";
+ }
}
}
}
$| = 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}));