components/apache2-modules/mod_perl/patches/TestConfigParse.patch
author Petr Sumbera <petr.sumbera@oracle.com>
Thu, 18 Dec 2014 06:53:52 -0800
changeset 3563 a34ad418afb9
parent 278 77b380ba9d84
child 4788 159f02dfcdd3
permissions -rw-r--r--
20229478 mod_perl test suite wouldn't start/pass due number of reasons

Patch origin: in-house
Patch status: Solaris-specific; not suitable for upstream

This change makes sure that 64 bit modules and mod_fcgid module are not
used for testing. Mod_fcgid is disabled because it by default creates
shared memory and socket in paths which are not suitable for ordinary
user (or there can be interaction with running Apache).

--- mod_perl-2.0.4/Apache-Test/lib/Apache/TestConfigParse.pm
+++ mod_perl-2.0.4/Apache-Test/lib/Apache/TestConfigParse.pm
@@ -211,6 +211,16 @@
     for my $args (@{ $c->{$directive} }) {
         my $modname = $args->[0];
         my $file = $self->server_file_rel2abs($args->[1]);
+	
+        unless ($file !~ m/\/64\//) {
+            debug "$file is 64 bit module (we don't want it)";
+            next;
+        }
+
+        unless ($file !~ m/mod_fcgid.so/) {
+            debug "$file creates shared memory and sockets on wrong place (skipping)";
+            next;
+        }
 
         unless (-e $file) {
             debug "$file does not exist, skipping LoadModule";