diff options
author | 2021-03-01 23:14:32 +0000 | |
---|---|---|
committer | 2021-03-01 23:14:32 +0000 | |
commit | de8cc8edbc71bd3e3bc7fbffa27ba0e564c37d8b (patch) | |
tree | 5e91ea1711126841ef19ee1ee17705e29dc6baf0 /gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker | |
parent | Update the MSI addresses for the Armada 8040. This chunk will only be (diff) | |
download | wireguard-openbsd-de8cc8edbc71bd3e3bc7fbffa27ba0e564c37d8b.tar.xz wireguard-openbsd-de8cc8edbc71bd3e3bc7fbffa27ba0e564c37d8b.zip |
Import perl-5.32.1
OK sthen@
Diffstat (limited to 'gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker')
6 files changed, 50 insertions, 4 deletions
diff --git a/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/03-xsstatic.t b/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/03-xsstatic.t index bfe3dc96c38..faf56e33398 100644 --- a/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/03-xsstatic.t +++ b/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/03-xsstatic.t @@ -20,7 +20,7 @@ plan skip_all => "ExtUtils::CBuilder not installed or couldn't find a compiler" unless have_compiler(); plan skip_all => 'Shared perl library' if $Config{useshrplib} eq 'true'; plan skip_all => $^O if $^O =~ m!^(MSWin32|cygwin|haiku|darwin)$!; -plan skip_all => 'Skipped when not PERL_CORE or in git repo' unless $ENV{PERL_CORE} or $release; +plan skip_all => 'Skipped when not PERL_CORE nor in git repo' unless $ENV{PERL_CORE} or $release; my @tests = list_static(); plan skip_all => "No tests" unless @tests; plan tests => 6 * @tests; diff --git a/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/MM_Cygwin.t b/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/MM_Cygwin.t index 4e7336c1eda..a37cb627657 100755 --- a/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/MM_Cygwin.t +++ b/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/MM_Cygwin.t @@ -80,7 +80,7 @@ like( $res, qr/manifypods.*foo.*foo.1/s, '... should add MAN3PODS targets' ); # init_linker { my $libperl = $Config{libperl} || 'libperl.a'; - $libperl =~ s/\.a/.dll.a/ if $] >= 5.006002; + $libperl =~ s/\.a/.dll.a/ if "$]" >= 5.006002; $libperl = "\$(PERL_INC)/$libperl"; my $export = ''; diff --git a/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/fixin.t b/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/fixin.t index 061e4562470..1357a2d8d33 100755 --- a/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/fixin.t +++ b/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/fixin.t @@ -9,7 +9,7 @@ BEGIN { use File::Spec; -use Test::More tests => 22; +use Test::More tests => 30; use Config; use TieOut; @@ -123,3 +123,35 @@ END } ); } + +SKIP: { + eval { chmod(0755, "usrbin/interp") } + or skip "no chmod", 8; + skip "Not relevant on VMS or MSWin32", 8 if $^O eq 'VMS' || $^O eq 'MSWin32' || $^O eq 'cygwin'; + + my $dir = getcwd(); + local $ENV{PATH} = join $Config{path_sep}, map "$dir/$_", qw(usrbin bin); + + test_fixin(<<END, +#!$dir/bin/interp + +blah blah blah +END + sub { + is $_[0], "#!$dir/usrbin/interp\n", 'interpreter updated to one found in PATH'; + } + ); + + eval { symlink("../usrbin/interp", "bin/interp") } + or skip "no symlinks", 4; + + test_fixin(<<END, +#!$dir/bin/interp + +blah blah blah +END + sub { + is $_[0], "#!$dir/bin/interp\n", 'symlinked interpreter later in PATH not mangled'; + } + ); +} diff --git a/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/lib/MakeMaker/Test/Setup/BFD.pm b/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/lib/MakeMaker/Test/Setup/BFD.pm index 3d093fcfbd6..cfe49e54659 100644 --- a/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/lib/MakeMaker/Test/Setup/BFD.pm +++ b/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/lib/MakeMaker/Test/Setup/BFD.pm @@ -54,6 +54,9 @@ program - this is a program 1; END + 'Big-Dummy/usrbin/interp' => <<'END', +This is a dummy interpreter +END 'Big-Dummy/test.pl' => <<'END', print "1..1\n"; diff --git a/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/pod2man.t b/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/pod2man.t index d206e0bc956..e3bc00dd401 100755 --- a/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/pod2man.t +++ b/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/pod2man.t @@ -19,7 +19,7 @@ use Test::More tests => 3; pod2man("--perm_rw"); - like $warnings, qr/^Option perm_rw requires an argument/; + like $warnings, qr/Option perm_rw requires an argument/; }; diff --git a/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/testrules.yml b/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/testrules.yml new file mode 100644 index 00000000000..97fad8cf199 --- /dev/null +++ b/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/testrules.yml @@ -0,0 +1,11 @@ +--- +# TAP::Harness test rules +# "t\02-xsdynamic.t" (and possibly "t\03-xsstatic.t") should *not* be run in parallel +# ... allowing overlap of these tests causes race conditions which lead to intermittent failures +seq: + - seq: + # serialize all tests in files matching "t/0*.t" + - t{\\,/}0*.t + - par: + # run all other tests in parallel + - ** |