From: Charles Bailey Date: Mon, 23 Aug 1999 03:23:34 +0000 (+0000) Subject: Skip open() tests that rely on Unix fork semantics X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=821b8a234bc50c46325206a621501cf30e11b29d;p=p5sagit%2Fp5-mst-13.2.git Skip open() tests that rely on Unix fork semantics p4raw-id: //depot/vmsperl@4024 --- diff --git a/t/io/open.t b/t/io/open.t index 0154b8f..49b2311 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