Doug MacEachern wrote:

 > On Tue, 11 Dec 2001, Stas Bekman wrote:
 >
 >
 >>I've noticed that recently the END block in Apache::TestUtil doesn't get
 >>executed. So all the temp files and dirs that get created during the
 >>tests run aren't getting removed at the end. Do you see the same thing?
 >>
 >
 > inside modperl or outside?  if outside, no idea.  if inside, same as 1.x,
 > END blocks are only run at server shutdown or per-request if the
 > SetHandler is perl-script and the module with END block wasn't 
pre-loaded.
 > per-request END blocks are not managed for SetHandler modperl.


Nope, it's inside and it doesn't get run at the shutdown. Consider this
patch:


Index: t/response/TestApache/write.pm
===================================================================
RCS file: /home/cvs/modperl-2.0/t/response/TestApache/write.pm,v
retrieving revision 1.1
diff -u -r1.1 write.pm
--- t/response/TestApache/write.pm      2001/05/05 19:24:41     1.1
+++ t/response/TestApache/write.pm      2001/12/11 03:48:28
@@ -9,6 +9,9 @@
       my $r = shift;
       $r->content_type('text/plain');

+    use Apache::TestUtil;
+    t_mkdir("/tmp/barbar");
+
       $r->write("1..2");
       $r->write("\n", 1);


the END block from TestUtil, should cleanup the temp dir, but it doesn't.


_____________________________________________________________________
Stas Bekman             JAm_pH      --   Just Another mod_perl Hacker
http://stason.org/      mod_perl Guide   http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]  http://ticketmaster.com http://apacheweek.com
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to