Skip to content

Commit c78a062

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

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

t/porting/filenames.t

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,24 +31,21 @@ use File::Basename;
3131
require './test.pl';
3232

3333

34-
my $manifest = '../MANIFEST';
34+
use ExtUtils::Manifest qw(maniread);
3535

36-
open my $m, '<', $manifest or die "Can't open '$manifest': $!";
37-
my @files;
38-
while (<$m>) {
39-
chomp;
40-
my($path) = split /\t+/;
41-
push @files, $path;
42-
43-
}
44-
close $m or die $!;
36+
# Get MANIFEST
37+
$ExtUtils::Manifest::Quiet = 1;
38+
my @files = (keys(%{ maniread("../MANIFEST") }),
39+
keys(%{ maniread("../Porting/MANIFEST.dev") }));
40+
@files = sort @files;
4541

4642
plan(scalar @files);
4743

4844
PATHNAME: for my $pathname (@files) {
4945
my @path_components = split('/',$pathname);
5046
my $filename = pop @path_components;
5147
for my $component (@path_components) {
48+
next if $component eq ".github";
5249
if ($component =~ /\./) {
5350
fail("$pathname has directory components containing '.'");
5451
next PATHNAME;

0 commit comments

Comments
 (0)