From dcbea1e5d1f90fd3ffdd86af7eb488fec552661e Mon Sep 17 00:00:00 2001 From: jamalofski Date: Tue, 3 Nov 2026 11:54:35 +0100 Subject: [PATCH] * t/modules/info.t: Expect modules linked in statically even when Apache::Test skips loading them. mod_fcgid.c is on Apache::Test's autoconfig_skip_module list, which only governs LoadModule. In an all-static build httpd has mod_fcgid compiled in and /server-info lists it, so the test failed with one module more than expected (apache/httpd#925). Co-Authored-By: Claude Opus 5.5 --- t/modules/info.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/t/modules/info.t b/t/modules/info.t index 21cee4e8..6e1334db 100644 --- a/t/modules/info.t +++ b/t/modules/info.t @@ -30,7 +30,9 @@ foreach (split /\n/, $info) { } foreach (sort keys %$mods) { - ($mods->{$_} && !$config->should_skip_module($_)) or next; + # a module linked in statically is always there, even one + # Apache::Test does not load (mod_fcgid) + ($mods->{$_} && ($mods->{$_} eq '1' || !$config->should_skip_module($_))) or next; if ($_ =~ /^mod_mpm_(eventopt|event|motorz|prefork|worker)\.c$/) { push(@expected,"$1.c"); } elsif ($_ eq 'mod_mpm_simple.c') {