Skip Menu |

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

Report information
The Basics
Id: 41504
Status: resolved
Priority: 0/
Queue: Test-Cmd

People
Owner: NEILB [...] cpan.org
Requestors: ANDK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.05
Fixed in: 1.06



Subject: Cleaning up temporary directory
I found these two (empty) directorie under /tmp/ after running make test with KNIGHT/Test-Cmd-1.05.tar.gz drwxr-xr-x 2 sand sand 4096 2008-12-07 15:20:30 testcmd15311.1/ drwxr-xr-x 2 sand sand 4096 2008-12-07 15:20:26 testcmd14560.1/ One thing is that predictable file names in /tmp/ have nasty security implications, so please avoid having predictable filenames in /tmp/ in general. The second thing is that it would be nie if the test suite could leave my /tmp/ directory tidy. Thanks for listening:)
Can we please have an updated status for this error.
I just coded up a fix for this. The problem was that a failure to create subdirectories during object initialization would return undef immediately without cleaning up the working directory. I can upload a 1.06, but it's been years since I've done anything with CPAN / PAUSE. (The last release predates the addition of META.yml files, for example, so I had to cut-and-paste something.) I'll poke around for current instructions, but a pointer might help save time.
Subject: Re: [rt.cpan.org #41504] Cleaning up temporary directory
Date: Wed, 13 Jan 2010 06:29:24 +0100
To: bug-Test-Cmd [...] rt.cpan.org
From: andreas.koenig.7os6VVqR [...] franz.ak.mind.de (Andreas J. Koenig)
One hint is: use 'make dist' to make the tarball and you probably can save the time to read any instructions. The other is: if you're nervous that something could be wrong, make it a dev release, that's a tarball that has an underscore in the version in the filename, say Test-Cmd-3.14_15.tar.gz. The underscore prevents indexing and so you get proper testing from the cpantesters.org without disturbing endusers. After two weeks of testing with good testing results you can make another release without the underscore. -- andreas
I've adopted this dist so I could address the outstanding issues. I believe this is fixed in 1.06 -- thanks.