perl-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philippe M. Chiasson" <go...@ectoplasm.org>
Subject Re: [patch] add method for writing temporary test libraries
Date Thu, 15 Nov 2007 22:51:23 GMT
Fred Moyer wrote:
> Please find attached a patch which adds t_write_test_lib, a method use 
> to create temporary perl packages used in testing.  The patch adds a 
> temp dir to @INC in modperl_inc.pl.
> 
> - Fred
> 
> [...]
> Index: lib/Apache/TestUtil.pm
> ===================================================================
> [...]
> @@ -191,6 +191,14 @@
>       return $fh;
>   }
> 
> +sub _temp_package_dir {
> +    return catdir(tmpdir(), 'apache_test');
> +}

How do you make sure that tmp directory gets cleaned up at the end of the
test run ?

-- 
Philippe M. Chiasson     GPG: F9BFE0C2480E7680 1AE53631CB32A107 88C3A5A5
http://gozer.ectoplasm.org/       m/gozer\@(apache|cpan|ectoplasm)\.org/


Mime
View raw message