summaryrefslogtreecommitdiffstats
path: root/debian/perl-framework/t/modules/speling.t
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-25 04:41:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-25 04:41:28 +0000
commit2eeb62e38ae17a3523ad3cd81c3de9f20f9e7742 (patch)
treefe91033d4712f6d836006b998525656b9dd193b8 /debian/perl-framework/t/modules/speling.t
parentMerging upstream version 2.4.59. (diff)
downloadapache2-2eeb62e38ae17a3523ad3cd81c3de9f20f9e7742.tar.xz
apache2-2eeb62e38ae17a3523ad3cd81c3de9f20f9e7742.zip
Adding debian version 2.4.59-1~deb10u1.debian/2.4.59-1_deb10u1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/perl-framework/t/modules/speling.t')
-rw-r--r--debian/perl-framework/t/modules/speling.t12
1 files changed, 9 insertions, 3 deletions
diff --git a/debian/perl-framework/t/modules/speling.t b/debian/perl-framework/t/modules/speling.t
index 25eb54e..85af159 100644
--- a/debian/perl-framework/t/modules/speling.t
+++ b/debian/perl-framework/t/modules/speling.t
@@ -2,8 +2,8 @@ use strict;
use warnings FATAL => 'all';
use Apache::Test;
-use Apache::TestUtil;
use Apache::TestRequest;
+use Apache::TestUtil;
my @testcasespaths = (
['/modules/speling/nocase/'],
@@ -17,7 +17,6 @@ my @testcases = (
['goood.html', "insertion", 301, 404],
['godo.html', "transposition", 301, 404],
['go_d.html', "wrong character", 301, 404],
- ['GOOD.html', "case", 301, 301],
['good.wrong_ext', "wrong extension", 300, 300],
['GOOD.wrong_ext', "NC wrong extension", 300, 300],
@@ -26,9 +25,15 @@ my @testcases = (
['dogo.html', "double transposition", 404, 404],
['XooX.html', "double wrong character", 404, 404],
- ['several0.html', "multiple choise", 300, 404],
+ ['several0.html', "multiple choice", 300, 404],
);
+# macOS HFS is case-insensitive but case-preserving so the below tests
+# would cause misleading failures
+if ($^O ne "darwin") {
+ push (@testcases, ['GOOD.html', "case", 301, 301]);
+}
+
plan tests => scalar @testcasespaths * scalar @testcases * 2, need 'mod_speling';
my $r;
@@ -40,6 +45,7 @@ local $Apache::TestRequest::RedirectOK = 0;
foreach my $p (@testcasespaths) {
foreach my $t (@testcases) {
##
+ #local $Apache::TestRequest::RedirectOK = 0;
$r = GET($p->[0] . $t->[0]);
# Checking for return code