summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorSteve Hay <SteveHay@planit.com>2005-01-10 11:53:10 +0000
committerSteve Hay <SteveHay@planit.com>2005-01-10 11:53:10 +0000
commit846e3505506e5ca6188404fe694911fd9e543b20 (patch)
treec4de95c09b6c5e363ba7499bfc9ba69abe8a8001 /t
parent6c4b87ea2cf1b07b221a48a59b468e8aae9a0981 (diff)
downloadperl-846e3505506e5ca6188404fe694911fd9e543b20.tar.gz
Need to close files before unlinking them on Win32
(Various files created by test programs are left behind otherwise, and distclean doesn't clean them up) p4raw-id: //depot/perl@23778
Diffstat (limited to '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;
}
}
}