summaryrefslogtreecommitdiff
path: root/t/io
diff options
context:
space:
mode:
Diffstat (limited to 't/io')
-rwxr-xr-xt/io/open.t14
1 files changed, 11 insertions, 3 deletions
diff --git a/t/io/open.t b/t/io/open.t
index 7085084fa3..1e9409171c 100755
--- a/t/io/open.t
+++ b/t/io/open.t
@@ -262,8 +262,16 @@ ok;
# 65..66
{
local *F;
- for (1..2) { open(F, "echo #foo|") or print "not "; }
- ok;
- for (1..2) { open(F, "-|", "echo #foo") or print "not "; }
+ for (1..2) {
+ open(F, "echo #foo|") or print "not ";
+ print <F>;
+ close F;
+ }
+ ok;
+ for (1..2) {
+ open(F, "-|", "echo #foo") or print "not ";
+ print <F>;
+ close F;
+ }
ok;
}