Re: Module::Build test practices (was r13228 ...)

David Golden <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.module-build
Message-ID <[email protected]>
On Fri, Aug 28, 2009 at 11:36 AM, Eric Wilhelm<[email protected]> wrote:
> Of course, maybe what we really need is for DistGen to be able to create
> the temp dir in the constructor, then call remove() from DESTROY.

Could have DistGen create a tmp dir that doesn't set CLEANUP and
records initial directory.  Then DistGen's DESTROY could chdir to the
original and remove the temp.  That keeps it all in DistGen rather
than MBTest.  It's not that MBTest's chdir in END is a bad idea,  but
I don't like relying on it for DistGen destruction.

How does that sound?

-- David
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.