Subject: | [PATCH] cleanup detritus in /tmp |
Date: | Wed, 3 Dec 2014 11:46:28 +0000 |
To: | bug-autodie [...] rt.cpan.org |
From: | Dave Mitchell <davem [...] iabyn.com> |
In bleadperl, the test file cpan/autodie/t/truncate.t leaves files on
/tmp. On smokers, these can gradually accumulate. This patch seems
to fix it:
diff --git a/cpan/autodie/t/truncate.t b/cpan/autodie/t/truncate.t
index 7af7226..a2acfeb 100644
--- a/cpan/autodie/t/truncate.t
+++ b/cpan/autodie/t/truncate.t
@@ -11,7 +11,7 @@ my ($truncate_status, $tmpfh, $tmpfile);
# Some systems have a screwy tempfile. We don't run our tests there.
eval {
- ($tmpfh, $tmpfile) = tempfile();
+ ($tmpfh, $tmpfile) = tempfile(UNLINK => 1);
};
if ($@ or !defined $tmpfh) {
--
This is a great day for France!
-- Nixon at Charles De Gaulle's funeral