Subject: | t/todo.t not safe on case-insensitive filesystems |
Date: | Sat, 26 Feb 2011 15:01:27 -0500 |
To: | bug-Test [...] rt.cpan.org |
From: | "Daniel Macks" <dmacks [...] netspace.org> |
Unpacking Test-1.25, I see there is a TODO file. After the usual
perl Makefile.PL
make
make test
that file is gone. I am on OS X, where the default filesystem is case-insensitive. The bug is in t/todo.t, where "todo" is used as a temporary file and then unlinked when no longer needed. On my FS, "todo" and "TODO" are the same file, so the distribution file gets clobbered. I don't understand the Test::Harness issue being described in todo.t, for which the use of the todo file is an apparent work-around. But could it simply use a different filename? Or more portably, could it use a File::Temp tempfile?
dan
--
Daniel Macks
dmacks@netspace.org