summaryrefslogtreecommitdiff
path: root/t/io
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-09-17 20:16:28 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-09-17 20:16:28 +0000
commitde736a2909cd9bd6fedf27c4a9020aec89d5b686 (patch)
treea7ece4170d811b49a9a13e45b07e08bbb936a198 /t/io
parentac5800303222d9885aecd12f12f06762bf97c2fb (diff)
parent424a8fe95d507998fe8750793da1b35bd6d7074b (diff)
downloadperl-de736a2909cd9bd6fedf27c4a9020aec89d5b686.tar.gz
integrate vmsperl contents into mainline (where VMS files conflicted,
vmsperl contents have prevailed) p4raw-id: //depot/perl@4182
Diffstat (limited to 't/io')
-rwxr-xr-xt/io/open.t7
1 files changed, 5 insertions, 2 deletions
diff --git a/t/io/open.t b/t/io/open.t
index 12d32f474c..0329c31b4e 100755
--- a/t/io/open.t
+++ b/t/io/open.t
@@ -3,6 +3,7 @@
# $RCSfile$
$| = 1;
$^W = 1;
+$Is_VMS = $^O eq 'VMS';
print "1..32\n";
@@ -78,7 +79,8 @@ print "ok 23\n";
unlink("afile");
}
-{
+if ($Is_VMS) { for (24..46) { print "ok $_ # skipped: not Unix fork\n"; {
+else {
print "# \$!='$!'\nnot " unless open(my $f, '-|', <<'EOC');
./perl -e "print qq(a row\n); print qq(another row\n)"
EOC
@@ -89,7 +91,8 @@ print "ok 25\n";
print "not " unless close($f);
print "ok 26\n";
}
-{
+if ($Is_VMS) { for (27..30) { print "OK $_ # skipped: not Unix fork\n"; }
+else {
print "# \$!='$!'\nnot " unless open(my $f, '|-', <<'EOC');
./perl -pe "s/^not //"
EOC