diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1999-01-17 12:00:23 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1999-01-17 12:00:23 +0000 |
commit | 06eaf0bc49fea082c8b8358680815d807a7a925e (patch) | |
tree | f4d9a1a3a6f0ef0ce15edc648b1335e1a3012c04 /t/io | |
parent | a81cd81f8e04bbc8bb5b6ca8cd8516f6206c6912 (diff) | |
download | perl-06eaf0bc49fea082c8b8358680815d807a7a925e.tar.gz |
sanity check piped opens (tweaked version of patch suggested
by Mark-Jason Dominus)
p4raw-id: //depot/perl@2629
Diffstat (limited to 't/io')
-rwxr-xr-x | t/io/pipe.t | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/t/io/pipe.t b/t/io/pipe.t index 08b312aec5..13db20b0c9 100755 --- a/t/io/pipe.t +++ b/t/io/pipe.t @@ -13,7 +13,7 @@ BEGIN { } $| = 1; -print "1..12\n"; +print "1..14\n"; # External program 'tr' assumed. open(PIPE, "|-") || (exec 'tr', 'YX', 'ko'); @@ -151,3 +151,10 @@ if ($? == 37*256 && $wait == $zombie && ! $!) { } else { print "not ok 12\n# pid=$wait first=$pid pipe=$pipe zombie=$zombie me=$$ \$?=$? \$!=", $!+0, ":$!\n"; } + +# Test new semantics for missing command in piped open +# 19990114 M-J. Dominus mjd@plover.com +{ local *P; + print (((open P, "| " ) ? "not " : ""), "ok 13\n"); + print (((open P, " |" ) ? "not " : ""), "ok 14\n"); +} |