Skip to content

Commit 6efd8f9

Browse files
committed
Teach t/porting/podcheck.t about Porting/MANIFEST.dev
Patch best viewed with -w
1 parent c78a062 commit 6efd8f9

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

t/porting/podcheck.t

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,8 @@ my $original_dir = File::Spec->rel2abs(File::Spec->curdir);
358358
my $data_dir = File::Spec->catdir($original_dir, 'porting');
359359
my $known_issues = File::Spec->catfile($data_dir, 'known_pod_issues.dat');
360360
my $MANIFEST = File::Spec->catfile(File::Spec->updir($original_dir), 'MANIFEST');
361+
my $MANIFEST_DEV = File::Spec->catfile(File::Spec->updir($original_dir),
362+
'Porting/MANIFEST.dev');
361363
my $copy_fh;
362364

363365
my $MAX_LINE_LENGTH = 78; # 78 columns
@@ -475,21 +477,22 @@ my $C_path_re = qr{ ^
475477
# for .PL files and get their full path names, so we can exclude each such
476478
# file explicitly. This works because other porting tests prohibit having two
477479
# files with the same names except for case.
478-
open my $manifest_fh, '<:bytes', $MANIFEST or die "Can't open $MANIFEST";
479-
while (<$manifest_fh>) {
480-
481-
# While we have MANIFEST open, on VMS platforms, look for files that match
482-
# the magic VMS file names that have to be handled specially. Add these
483-
# to the list of them.
484-
if ($^O eq 'VMS' && / ^ ( [^\t]* $vms_re ) \t /x) {
485-
$special_vms_files{$1} = 1;
486-
}
487-
if (/ ^ ( [^\t]* \. PL ) \t /x) {
488-
$excluded_files{canonicalize($1)} = 1;
480+
foreach my $manifest_file ($MANIFEST, $MANIFEST_DEV) {
481+
open my $manifest_fh, '<:bytes', $manifest_file or die "Can't open $manifest_file";
482+
while (<$manifest_fh>) {
483+
484+
# While we have MANIFEST open, on VMS platforms, look for files that match
485+
# the magic VMS file names that have to be handled specially. Add these
486+
# to the list of them.
487+
if ($^O eq 'VMS' && m/ ^ ( [^\t]* $vms_re ) \t /x) {
488+
$special_vms_files{$1} = 1;
489+
}
490+
if (m/ ^ ( [^\t]* \. PL ) \t /x) {
491+
$excluded_files{canonicalize($1)} = 1;
492+
}
489493
}
494+
close $manifest_fh, or die "Can't close $manifest_file";
490495
}
491-
close $manifest_fh, or die "Can't close $MANIFEST";
492-
493496

494497
# Pod::Checker messages to suppress
495498
my @suppressed_messages = (

0 commit comments

Comments
 (0)