diff options
author | 2014-11-17 20:52:31 +0000 | |
---|---|---|
committer | 2014-11-17 20:52:31 +0000 | |
commit | 6fb12b7054efc6b436584db6cef9c2f85c0d7e27 (patch) | |
tree | aa09a524574ec7ae2f521a24573deeecb78ff66a /gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/lib | |
parent | Add the Cammelia cipher to libcrypto. (diff) | |
download | wireguard-openbsd-6fb12b7054efc6b436584db6cef9c2f85c0d7e27.tar.xz wireguard-openbsd-6fb12b7054efc6b436584db6cef9c2f85c0d7e27.zip |
Import perl-5.20.1
Diffstat (limited to 'gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/lib')
6 files changed, 15 insertions, 47 deletions
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 8df77d47845..e5af93c4b13 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 @@ -97,8 +97,6 @@ END sub setup_recurs { - setup_mm_test_root(); - chdir 'MM_TEST_ROOT:[t]' if $Is_VMS; while(my($file, $text) = each %Files) { # Convert to a relative, native file path. @@ -119,7 +117,7 @@ sub setup_recurs { return 1; } -sub teardown_recurs { +sub teardown_recurs { foreach my $file (keys %Files) { my $dir = dirname($file); if( -e $dir ) { diff --git a/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/lib/MakeMaker/Test/Setup/PL_FILES.pm b/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/lib/MakeMaker/Test/Setup/PL_FILES.pm index 74461854442..f412368317c 100644 --- a/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/lib/MakeMaker/Test/Setup/PL_FILES.pm +++ b/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/lib/MakeMaker/Test/Setup/PL_FILES.pm @@ -88,8 +88,6 @@ END sub setup { - setup_mm_test_root(); - chdir 'MM_TEST_ROOT:[t]' if $^O eq 'VMS'; while(my($file, $text) = each %Files) { # Convert to a relative, native file path. @@ -110,7 +108,7 @@ sub setup { return 1; } -sub teardown { +sub teardown { foreach my $file (keys %Files) { my $dir = dirname($file); if( -e $dir ) { diff --git a/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/lib/MakeMaker/Test/Setup/Problem.pm b/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/lib/MakeMaker/Test/Setup/Problem.pm index c6573a1aadd..59ac1517a6e 100644 --- a/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/lib/MakeMaker/Test/Setup/Problem.pm +++ b/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/lib/MakeMaker/Test/Setup/Problem.pm @@ -48,7 +48,7 @@ sub setup_recurs { return 1; } -sub teardown_recurs { +sub teardown_recurs { foreach my $file (keys %Files) { my $dir = dirname($file); if( -e $dir ) { diff --git a/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/lib/MakeMaker/Test/Setup/Recurs.pm b/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/lib/MakeMaker/Test/Setup/Recurs.pm index ad1be2f6d1d..8694321358c 100644 --- a/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/lib/MakeMaker/Test/Setup/Recurs.pm +++ b/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/lib/MakeMaker/Test/Setup/Recurs.pm @@ -38,8 +38,6 @@ END ); sub setup_recurs { - setup_mm_test_root(); - chdir 'MM_TEST_ROOT:[t]' if $^O eq 'VMS'; while(my($file, $text) = each %Files) { # Convert to a relative, native file path. @@ -60,7 +58,7 @@ sub setup_recurs { return 1; } -sub teardown_recurs { +sub teardown_recurs { foreach my $file (keys %Files) { my $dir = dirname($file); if( -e $dir ) { diff --git a/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/lib/MakeMaker/Test/Setup/XS.pm b/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/lib/MakeMaker/Test/Setup/XS.pm index 195fd56feb0..f47da75e5e5 100644 --- a/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/lib/MakeMaker/Test/Setup/XS.pm +++ b/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/lib/MakeMaker/Test/Setup/XS.pm @@ -51,7 +51,7 @@ is_even(input) CODE: RETVAL = (input % 2 == 0); OUTPUT: - RETVAL + RETVAL END 'XS-Test/t/is_even.t' => <<'END', @@ -67,8 +67,6 @@ END sub setup_xs { - setup_mm_test_root(); - chdir 'MM_TEST_ROOT:[t]' if $Is_VMS; while(my($file, $text) = each %Files) { # Convert to a relative, native file path. @@ -84,7 +82,7 @@ sub setup_xs { return 1; } -sub teardown_xs { +sub teardown_xs { foreach my $file (keys %Files) { my $dir = dirname($file); if( -e $dir ) { @@ -94,4 +92,4 @@ sub teardown_xs { return 1; } -1;
\ No newline at end of file +1; diff --git a/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/lib/MakeMaker/Test/Utils.pm b/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/lib/MakeMaker/Test/Utils.pm index 9a6ab60e35c..7d739277898 100644 --- a/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/lib/MakeMaker/Test/Utils.pm +++ b/gnu/usr.bin/perl/cpan/ExtUtils-MakeMaker/t/lib/MakeMaker/Test/Utils.pm @@ -13,7 +13,6 @@ our $Is_FreeBSD = $^O eq 'freebsd'; our @EXPORT = qw(which_perl perl_lib makefile_name makefile_backup make make_run run make_macro calibrate_mtime - setup_mm_test_root have_compiler slurp $Is_VMS $Is_MacOS run_ok @@ -38,6 +37,9 @@ our @EXPORT = qw(which_perl perl_lib makefile_name makefile_backup # Inform the BSDPAN hacks not to register modules installed for testing. $default_env_keys{PORTOBJFORMAT} = 1 if $Is_FreeBSD; + # https://github.com/Perl-Toolchain-Gang/ExtUtils-MakeMaker/issues/65 + $default_env_keys{ACTIVEPERL_CONFIG_SILENT} = 1; + # Remember the ENV values because on VMS %ENV is global # to the user, not the process. my %restore_env_keys; @@ -128,7 +130,7 @@ sub which_perl { # When building in the core, *don't* go off and find # another perl - die "Can't find a perl to use (\$^X=$^X), (\$perlpath=$perlpath)" + die "Can't find a perl to use (\$^X=$^X), (\$perlpath=$perlpath)" if $ENV{PERL_CORE}; foreach my $path (File::Spec->path) { @@ -162,7 +164,7 @@ sub perl_lib { unshift @INC, $lib; } -END { +END { if( $had5lib ) { $ENV{PERL5LIB} = $old5lib; } @@ -183,7 +185,7 @@ should generate. sub makefile_name { return $Is_VMS ? 'Descrip.MMS' : 'Makefile'; -} +} =item B<makefile_backup> @@ -236,7 +238,7 @@ sub make_run { Returns the command necessary to run $make on the given $target using the given %macros. - my $make_test_verbose = make_macro(make_run(), 'test', + my $make_test_verbose = make_macro(make_run(), 'test', TEST_VERBOSE => 1); This is important because VMS's make utilities have a completely @@ -300,7 +302,7 @@ sub run { use ExtUtils::MM; - # Unix, modern Windows and OS/2 from 5.005_54 up can handle 2>&1 + # Unix, modern Windows and OS/2 from 5.005_54 up can handle 2>&1 # This makes our failure diagnostics nicer to read. if( MM->os_flavor_is('Unix') or (MM->os_flavor_is('Win32') and !MM->os_flavor_is('Win9x')) or @@ -334,32 +336,6 @@ sub run_ok { return wantarray ? @out : join "", @out; } -=item B<setup_mm_test_root> - -Creates a rooted logical to avoid the 8-level limit on older VMS systems. -No action taken on non-VMS systems. - -=cut - -sub setup_mm_test_root { - if( $Is_VMS ) { - # On older systems we might exceed the 8-level directory depth limit - # imposed by RMS. We get around this with a rooted logical, but we - # can't create logical names with attributes in Perl, so we do it - # in a DCL subprocess and put it in the job table so the parent sees it. - open( MMTMP, '>mmtesttmp.com' ) || - die "Error creating command file; $!"; - print MMTMP <<'COMMAND'; -$ MM_TEST_ROOT = F$PARSE("SYS$DISK:[--]",,,,"NO_CONCEAL")-".][000000"-"]["-"].;"+".]" -$ DEFINE/JOB/NOLOG/TRANSLATION=CONCEALED MM_TEST_ROOT 'MM_TEST_ROOT' -COMMAND - close MMTMP; - - system '@mmtesttmp.com'; - 1 while unlink 'mmtesttmp.com'; - } -} - =item have_compiler $have_compiler = have_compiler; |