From 0ef4ffa94de66d76372c1f5c8cc35d3c9dfe6dc9 Mon Sep 17 00:00:00 2001 From: Brian Fraser Date: Wed, 22 Jan 2014 14:23:51 -0300 Subject: [PATCH] t/op/magic.t: Use three-arg open to avooid creating a subshell --- t/op/magic.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/op/magic.t b/t/op/magic.t index 75d4ed0..fbd9c9d 100644 --- a/t/op/magic.t +++ b/t/op/magic.t @@ -123,7 +123,7 @@ SKIP: { sub FETCH { $next_test + pop } tie my @tn, __PACKAGE__; - open( CMDPIPE, "| $PERL"); + open( CMDPIPE, "|-", $PERL); print CMDPIPE "\$t1 = $tn[1]; \$t2 = $tn[2];\n", <<'END'; @@ -146,7 +146,7 @@ END close CMDPIPE; - open( CMDPIPE, "| $PERL"); + open( CMDPIPE, "|-", $PERL); print CMDPIPE "\$t3 = $tn[3];\n", <<'END'; { package X; @@ -176,7 +176,7 @@ END my $todo = ($^O eq 'os2' ? ' # TODO: EMX v0.9d_fix4 bug: wrong nibble? ' : ''); print $? & 0xFF ? "ok $tn[4]$todo\n" : "not ok $tn[4]$todo\n"; - open(CMDPIPE, "| $PERL"); + open(CMDPIPE, "|-", $PERL); print CMDPIPE <<'END'; sub PVBM () { 'foo' } -- 2.7.4