dougm       02/05/14 16:14:11

  Added:       lib/ModPerl TestRun.pm
  Log:
  subclass of Apache::TestRun so LoadModule of mod_perl.so is not inherited
  
  Revision  Changes    Path
  1.1                  modperl-2.0/lib/ModPerl/TestRun.pm
  
  Index: TestRun.pm
  ===================================================================
  package ModPerl::TestRun;
  
  use Apache::TestRunPerl ();
  
  our @ISA = qw(Apache::TestRunPerl);
  
  sub new_test_config {
      my $self = shift;
  
      ModPerl::TestConfig->new($self->{conf_opts});
  }
  
  package ModPerl::TestConfig;
  
  our @ISA = qw(Apache::TestConfig);
  
  #don't inherit LoadModule perl_module from the apache httpd.conf
  
  sub should_load_module {
      my($self, $name) = @_;
  
      $name eq 'mod_perl.c' ? 0 : 1;
  }
  
  1;
  
  
  
  


Reply via email to