X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fio%2Fopenpid.t;h=449a268d961631ece9d00dde3387262be8fe2a10;hb=673061948a634568cc156286d219e7f736c6048a;hp=c6ed8402258e56ca393d814d420b4c03ca4abbef;hpb=c8fc8fb0dd5fe8024295134e4cd63a3f63734f70;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/io/openpid.t b/t/io/openpid.t index c6ed840..449a268 100755 --- a/t/io/openpid.t +++ b/t/io/openpid.t @@ -23,6 +23,7 @@ plan tests => 10; use Config; $| = 1; $SIG{PIPE} = 'IGNORE'; +$SIG{HUP} = 'IGNORE' if $^O eq 'interix'; my $perl = which_perl(); $perl .= qq[ "-I../lib"]; @@ -44,7 +45,10 @@ $cmd4 = qq/$perl -e "print scalar <>;"/; # start the processes ok( $pid1 = open(FH1, "$cmd1 |"), 'first process started'); ok( $pid2 = open(FH2, "$cmd2 |"), ' second' ); -ok( $pid3 = open(FH3, "| $cmd3"), ' third' ); +{ + no warnings 'once'; + ok( $pid3 = open(FH3, "| $cmd3"), ' third' ); +} ok( $pid4 = open(FH4, "| $cmd4"), ' fourth' ); print "# pids were $pid1, $pid2, $pid3, $pid4\n";