Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File::Find: fix "follow => 1" on Windows #20008

Merged
merged 3 commits into from
Aug 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -4265,6 +4265,7 @@ ext/File-DosGlob/DosGlob.xs Win32 DOS-globbing module
ext/File-DosGlob/lib/File/DosGlob.pm Win32 DOS-globbing module
ext/File-DosGlob/t/DosGlob.t See if File::DosGlob works
ext/File-Find/lib/File/Find.pm Routines to do a find
ext/File-Find/t/correct-absolute-path-with-follow.t
ext/File-Find/t/find.t See if File::Find works
ext/File-Find/t/lib/Testing.pm Functions used in testing File-find
ext/File-Find/t/taint.t See if File::Find works with taint
Expand Down
1 change: 1 addition & 0 deletions Porting/Maintainers.pl
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ package Maintainers;
'DISTRIBUTION' => 'SMUELLER/AutoLoader-5.74.tar.gz',
'FILES' => q[cpan/AutoLoader],
'EXCLUDED' => ['t/00pod.t'],
'CUSTOMIZED' => ['t/02AutoSplit.t'],
},

'autouse' => {
Expand Down
6 changes: 5 additions & 1 deletion cpan/AutoLoader/t/02AutoSplit.t
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,12 @@ foreach (@tests) {

if ($args{Files}) {
$args{Files} =~ s!/!:!gs if $^O eq 'MacOS';
$args{Files} =~ s!\\!/!g if $^O eq 'MSWin32';
my (%missing, %got);
find (sub {$got{$File::Find::name}++ unless -d $_}, $dir);
find(
sub { (my $f = $File::Find::name) =~ s!\\!/!g; $got{$f}++ unless -d $_ },
$dir
);
foreach (split /\n/, $args{Files}) {
next if /^#/;
$_ = lc($_) if $Is_VMS_lc;
Expand Down
Loading