[EMAIL PROTECTED] wrote:
geoff 2003/09/05 09:30:45

  Modified:    t/response/TestAPR pool.pm
  Log:
  add subpool tests

+ my $subp = $p->new;
+
+ ok $subp->isa('APR::Pool');
+
#only available with -DAPR_POOL_DEBUG
# my $num_bytes = $p->num_bytes;
# ok $num_bytes;
$p->cleanup_register(\&cleanup, 33);
+ $subp->cleanup_register(\&cleanup, 33);

it's probably better to have a new 'sub cleanup_sub_pool', otherwise how do we know that it's not the main pool that gets destroyed twice?


  +    # should destroy the subpool too, so
  +    # cleanup is called twice
       $p->destroy;

also should we test that a sub-pool is destroyed before the main pool?


__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


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



Reply via email to