Force OP_REQUIRE to scalar context at the end of ck_require and don't let it become...
[p5sagit/p5-mst-13.2.git] / t / io / openpid.t
old mode 100755 (executable)
new mode 100644 (file)
index 23d75ef..ee4702c
@@ -13,12 +13,12 @@ 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;
@@ -45,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";