perl-modperl-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From go...@apache.org
Subject cvs commit: modperl-2.0/t/response/TestAPI module.pm
Date Thu, 06 May 2004 22:23:09 GMT
gozer       2004/05/06 15:23:09

  Modified:    t/response/TestAPI module.pm
  Log:
  Make sure t/api/module will not fail when mod_perl is statically compiled
  in httpd (upcoming feature)
  
  Revision  Changes    Path
  1.10      +6 -2      modperl-2.0/t/response/TestAPI/module.pm
  
  Index: module.pm
  ===================================================================
  RCS file: /home/cvs/modperl-2.0/t/response/TestAPI/module.pm,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- module.pm	8 Apr 2004 01:56:31 -0000	1.9
  +++ module.pm	6 May 2004 22:23:09 -0000	1.10
  @@ -7,6 +7,7 @@
   use Apache::Test;
   use Apache::TestConfig;
   use Apache::TestUtil;
  +use Apache::BuildConfig;
   
   use Apache::Module ();
   use DynaLoader ();
  @@ -84,9 +85,12 @@
                "Apache::Module::loaded('Apache__Module_foo.c')");
   
       #.so
  -    ok t_cmp(1, Apache::Module::loaded('mod_perl.so'),
  +    {
  +    my $expect = Apache::BuildConfig->new->{MP_USE_STATIC} ? 0 : 1;
  +    ok t_cmp($expect, Apache::Module::loaded('mod_perl.so'),
                "Apache::Module::loaded('mod_perl.so')");
  -
  +    }
  +    
       ok t_cmp(0, Apache::Module::loaded('Apache__Module__foo.so'),
                "Apache::Module::loaded('Apache__Module_foo.so')");
   
  
  
  

Mime
View raw message