summaryrefslogtreecommitdiff
path: root/t/op/read.t
diff options
context:
space:
mode:
Diffstat (limited to 't/op/read.t')
-rwxr-xr-xt/op/read.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/op/read.t b/t/op/read.t
index 4aaaeabdfe..99a62166ce 100755
--- a/t/op/read.t
+++ b/t/op/read.t
@@ -35,7 +35,7 @@ my $has_perlio = !eval {
my $tmpfile = 'Op_read.tmp';
-1 while unlink $tmpfile;
+END { 1 while unlink $tmpfile }
my (@values, @buffers) = ('', '');
@@ -90,6 +90,7 @@ foreach my $value (@values) {
$got = read (FH, $buffer, $length, $offset);
is ($got, length $will_read, "got $what");
is ($buffer, $expect, "buffer $what");
+ close FH;
}
}
}