X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fop%2Fexec.t;h=5f110be32e1b9738e020782001465b152a0a08ab;hb=e24631be6ac297b562086a055de17c5bd4247797;hp=a0f361a8e394d160ac9cf9ed48bbf466b9d2d745;hpb=c623ac675720b3145d48cc2ea9474a0f3e0cbbca;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/op/exec.t b/t/op/exec.t index a0f361a..5f110be 100755 --- a/t/op/exec.t +++ b/t/op/exec.t @@ -17,7 +17,9 @@ $ENV{LANGUAGE} = 'C'; # Ditto in GNU. my $Is_VMS = $^O eq 'VMS'; my $Is_Win32 = $^O eq 'MSWin32'; -plan(tests => 20); +skip_all("Tests mostly usesless on MacOS") if $^O eq 'MacOS'; + +plan(tests => 21); my $Perl = which_perl(); @@ -72,6 +74,12 @@ is( $echo_out, "ok\n", 'piped echo emulation'); is( scalar `$Perl -le "print 'ok'" | $Perl -e "print "`, "ok\n", 'extra newlines on outgoing pipes'); + + { + local($/) = \2; + $out = runperl(prog => 'print q{1234}'); + is($out, "1234", 'ignore $/ when capturing output in scalar context'); + } }