Skip to content

Commit 8ba48d0

Browse files
committed
Teach t/TEST about Porting/MANIFEST.dev
Patch best viewed with -w
1 parent bf5584e commit 8ba48d0

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

t/TEST

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,12 @@ sub _tests_from_manifest {
402402
}
403403
404404
my @results;
405-
my $mani = '../MANIFEST';
406-
if (open(MANI, $mani)) {
405+
foreach my $manifest_file ('../MANIFEST','../Porting/MANIFEST.dev') {
406+
if (!open(MANI,$manifest_file)) {
407+
warn "$0: cannot open '$manifest_file': $!\n"
408+
if $manifest_file!~/Porting/ or -e $manifest_file;
409+
next;
410+
}
407411
while (<MANI>) {
408412
if (m!^((?:cpan|dist|ext)/(\S+)/+(?:[^/\s]+\.t|test\.pl)|lib/\S+?(?:\.t|test\.pl))\s!) {
409413
my $t = $1;
@@ -458,9 +462,8 @@ sub _tests_from_manifest {
458462
}
459463
}
460464
close MANI;
461-
} else {
462-
warn "$0: cannot open $mani: $!\n";
463465
}
466+
464467
return @results;
465468
}
466469

0 commit comments

Comments
 (0)