This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add register_tempfile() to t/test.pl
authorBrad Gilbert <b2gills@gmail.com>
Tue, 4 Feb 2014 16:37:02 +0000 (10:37 -0600)
committerTony Cook <tony@develop-help.com>
Thu, 13 Feb 2014 02:53:28 +0000 (13:53 +1100)
commit5eccd97ae65fe4e91991cec8d8034c09786096c4
tree0ce0fd062ec28b3ff480f0a96bb471b6f8a83642
parent7c3b91c9f12b27ba22681c090153e77219e6cecd
Add register_tempfile() to t/test.pl

This convenience function causes files to be removed in the same
way that tempfile() does.

It uses the same variable that tempfile() does, to catch and
warn on any collisions.
t/test.pl
t/test_pl/tempfile.t