diff options
Diffstat (limited to 't/op/read.t')
-rwxr-xr-x | t/op/read.t | 3 |
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; } } } |