diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-02-24 17:46:45 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-02-24 17:46:45 +0000 |
commit | 0994c4d08152f97e3d70c5ce59ee93b0aa88684c (patch) | |
tree | 5fcc3ca38de1159018ec3f9ff41d5db1edce58d1 /t/io/pipe.t | |
parent | cb64dba4c7358c2e02c1ac7a571173423f71980f (diff) | |
download | perl-0994c4d08152f97e3d70c5ce59ee93b0aa88684c.tar.gz |
MPE/ix patches from Mark Bixby.
p4raw-id: //depot/cfgperl@5239
Diffstat (limited to 't/io/pipe.t')
-rwxr-xr-x | t/io/pipe.t | 35 |
1 files changed, 20 insertions, 15 deletions
diff --git a/t/io/pipe.t b/t/io/pipe.t index 826cf7434a..ae890c0402 100755 --- a/t/io/pipe.t +++ b/t/io/pipe.t @@ -132,22 +132,27 @@ else { print "ok 10\n"; } -# check that status for the correct process is collected -my $zombie = fork or exit 37; -my $pipe = open *FH, "sleep 2;exit 13|" or die "Open: $!\n"; -$SIG{ALRM} = sub { return }; -alarm(1); -my $close = close FH; -if ($? == 13*256 && ! length $close && ! $!) { - print "ok 11\n"; -} else { - print "not ok 11\n# close $close\$?=$? \$!=", $!+0, ":$!\n"; -}; -my $wait = wait; -if ($? == 37*256 && $wait == $zombie && ! $!) { - print "ok 12\n"; +if ($^O eq 'mpeix') { + print "ok 11 # skipped\n"; + print "ok 12 # skipped\n"; } else { - print "not ok 12\n# pid=$wait first=$pid pipe=$pipe zombie=$zombie me=$$ \$?=$? \$!=", $!+0, ":$!\n"; + # check that status for the correct process is collected + my $zombie = fork or exit 37; + my $pipe = open *FH, "sleep 2;exit 13|" or die "Open: $!\n"; + $SIG{ALRM} = sub { return }; + alarm(1); + my $close = close FH; + if ($? == 13*256 && ! length $close && ! $!) { + print "ok 11\n"; + } else { + print "not ok 11\n# close $close\$?=$? \$!=", $!+0, ":$!\n"; + }; + my $wait = wait; + if ($? == 37*256 && $wait == $zombie && ! $!) { + print "ok 12\n"; + } else { + print "not ok 12\n# pid=$wait first=$pid pipe=$pipe zombie=$zombie me=$$ \$?=$? \$!=", $!+0, ":$!\n"; + } } # Test new semantics for missing command in piped open |