summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2014-08-12 16:09:46 +0100
committerDavid Mitchell <davem@iabyn.com>2014-08-12 16:09:46 +0100
commit48bbb9f89ad796281ab8c7a122d14c2d8d7bc579 (patch)
tree62bcc17c40cad8eb192e6d153d29f706e4bc3ea7 /t
parent5a3240c189517e77b3402aa8998b5beee21045bd (diff)
downloadperl-48bbb9f89ad796281ab8c7a122d14c2d8d7bc579.tar.gz
fix fix for stat.t on win32
My previous commit made a test open a file, then delete it. It should of course have closed the file before deleting it. On Linux this is just bad manners, but on Win32 it actively fails.
Diffstat (limited to 't')
-rw-r--r--t/op/stat.t1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/op/stat.t b/t/op/stat.t
index 027902df64..2c28e1e267 100644
--- a/t/op/stat.t
+++ b/t/op/stat.t
@@ -477,6 +477,7 @@ like $@, qr/^The stat preceding lstat\(\) wasn't an lstat at /,
stat "test.pl";
my @lstatbuf = lstat *FOO{IO};
is "@lstatbuf", "@statbuf", 'lstat $ioref reverts to regular fstat';
+ close(FOO);
unlink $tmpfile or print "# unlink failed: $!\n";
}