summaryrefslogtreecommitdiff
path: root/t/io/open.t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-04-28 20:26:30 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-04-28 20:26:30 +0000
commitdc459aad73ffc3aaf43c03d9908415c433fd93ba (patch)
tree981bdcf9828bbd255b79fd1181324eb2b45d8a61 /t/io/open.t
parent21f5a6076e634a7ee61d6f5aa4e44bf6708db9fb (diff)
downloadperl-dc459aad73ffc3aaf43c03d9908415c433fd93ba.tar.gz
Integrate #16254 from macperl;
Fix most tests on MacOS (not yet ext/ or /lib) p4raw-id: //depot/perl@16257
Diffstat (limited to 't/io/open.t')
-rwxr-xr-xt/io/open.t13
1 files changed, 9 insertions, 4 deletions
diff --git a/t/io/open.t b/t/io/open.t
index 187106156f..cf1d39dc0d 100755
--- a/t/io/open.t
+++ b/t/io/open.t
@@ -10,6 +10,7 @@ $| = 1;
use warnings;
use Config;
$Is_VMS = $^O eq 'VMS';
+$Is_MacOS = $^O eq 'MacOS';
plan tests => 94;
@@ -79,7 +80,7 @@ SKIP: {
skip "open -| busted and noisy on VMS", 3 if $Is_VMS;
ok( open(my $f, '-|', <<EOC), 'open -|' );
- $Perl -e "print qq(a row\n); print qq(another row\n)"
+ $Perl -e "print qq(a row\\n); print qq(another row\\n)"
EOC
my @rows = <$f>;
@@ -87,7 +88,9 @@ EOC
ok( close($f), ' close' );
}
-{
+SKIP: {
+ skip "Output for |- doesn't go to shell on MacOS", 5 if $Is_MacOS;
+
ok( open(my $f, '|-', <<EOC), 'open |-' );
$Perl -pe "s/^not //"
EOC
@@ -172,7 +175,7 @@ SKIP: {
skip "open -| busted and noisy on VMS", 3 if $Is_VMS;
ok( open(local $f, '-|', <<EOC), 'open local $f, "-|", ...' );
- $Perl -e "print qq(a row\n); print qq(another row\n)"
+ $Perl -e "print qq(a row\\n); print qq(another row\\n)"
EOC
my @rows = <$f>;
@@ -180,7 +183,9 @@ EOC
ok( close($f), ' close' );
}
-{
+SKIP: {
+ skip "Output for |- doesn't go to shell on MacOS", 5 if $Is_MacOS;
+
ok( open(local $f, '|-', <<EOC), 'open local $f, "|-", ...' );
$Perl -pe "s/^not //"
EOC