summaryrefslogtreecommitdiff
path: root/lib/File
diff options
context:
space:
mode:
Diffstat (limited to 'lib/File')
-rw-r--r--lib/File/stat.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/File/stat.t b/lib/File/stat.t
index 264ecd1919..81f75f586c 100644
--- a/lib/File/stat.t
+++ b/lib/File/stat.t
@@ -13,7 +13,7 @@ use File::Temp qw( tempfile tempdir );
use File::stat;
-my (undef, $file) = tempfile();
+my (undef, $file) = tempfile(UNLINK => 1);
{
my @stat = CORE::stat $file;