summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2011-08-13 10:19:08 -0500
committerCraig A. Berry <craigberry@mac.com>2011-08-13 11:01:50 -0500
commit8e263bd467d91d1055f682d3a4f67e831e0c25d4 (patch)
treecefa53a97d20e2649f0586d0e27f36411ce6f1bb
parentc3e4944bf469511ce80e004c04f2c9b15ebaf43b (diff)
downloadperl-8e263bd467d91d1055f682d3a4f67e831e0c25d4.tar.gz
Trim trailing dots on VMS in podcheck.t.
readdir() and thus File::Find return files having zero-length extensions as 'foo.' which doesn't match entries like 'foo' in the known problems database. Trimming that trailing dot reduces the number of failures on VMS to a handful. They are primarily due to: 1.) The test attempts to exclude .PL files, but on VMS, case is not preserved by default, so these appear as .pl and are not excluded, confusing a number of the tests. 2.) Utilities and scripts are built with a .com extension on VMS, but the corresponding entries in the known problems database have no extension, so they don't match.
-rw-r--r--t/porting/podcheck.t1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/porting/podcheck.t b/t/porting/podcheck.t
index 6f71914a66..2bfddfd5e6 100644
--- a/t/porting/podcheck.t
+++ b/t/porting/podcheck.t
@@ -393,6 +393,7 @@ sub canonicalize($) {
# Assumes $volume is constant for everything in this directory structure
$directories = "" if ! $directories;
$file = "" if ! $file;
+ $file =~ s/\.$// if $^O eq 'VMS';
my $output = lc join '/', File::Spec->splitdir($directories), $file;
$output =~ s! / /+ !/!gx; # Multiple slashes => single slash
return $output;