Skip Menu |

This queue is for tickets about the Test-Spelling CPAN distribution.

Report information
The Basics
Id: 41586
Status: resolved
Priority: 0/
Queue: Test-Spelling

People
Owner: Nobody in particular
Requestors: tokuhirom+cpan [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: unlink temporary files afte run
after run Test::Spelling, some temporary files remain in temporary directory. please remove it :) diff --git a/lib/Test/Spelling.pm b/lib/Test/Spelling.pm index 1524966..f7265b7 100644 --- a/lib/Test/Spelling.pm +++ b/lib/Test/Spelling.pm @@ -52,6 +52,7 @@ sub pod_file_spelling_ok { or croak "Couldn't run spellcheck command '$Spell_cmd'"; my @words = <ASPELL>; close ASPELL or die; + unlink $Spell_temp; # clean up words, remove stopwords, select unique errors chomp for @words;
Hi Tokuhirom, This will be fixed in the next release, 0.12. Instead of explicitly unlinking the file, I made the scope of the tempfile just the one function that uses it, so it should be cleaned up more reliably. Thanks! Shawn