X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fio%2Fopenpid.t;h=ee4702cb8fc52295ec6d0422cd4759bb9e263e1b;hb=021f53de09926928546378b3552f9240c9241dde;hp=c6ed8402258e56ca393d814d420b4c03ca4abbef;hpb=dc459aad73ffc3aaf43c03d9908415c433fd93ba;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/io/openpid.t b/t/io/openpid.t old mode 100755 new mode 100644 index c6ed840..ee4702c --- a/t/io/openpid.t +++ b/t/io/openpid.t @@ -13,16 +13,17 @@ BEGIN { require './test.pl'; } -if ($^O eq 'dos' || $^O eq 'MacOS') { +if ($^O eq 'dos') { skip_all("no multitasking"); } plan tests => 10; - +watchdog(15); 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";