X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/808285e0c19deb01a491a8e21c7a4b31ab7dae30..88e241815c36fd7e2e0db73c93ff2ec458cddd7c:/cpan/ExtUtils-MakeMaker/t/lib/MakeMaker/Test/Utils.pm diff --git a/cpan/ExtUtils-MakeMaker/t/lib/MakeMaker/Test/Utils.pm b/cpan/ExtUtils-MakeMaker/t/lib/MakeMaker/Test/Utils.pm index 7d73927..16d6688 100644 --- a/cpan/ExtUtils-MakeMaker/t/lib/MakeMaker/Test/Utils.pm +++ b/cpan/ExtUtils-MakeMaker/t/lib/MakeMaker/Test/Utils.pm @@ -30,6 +30,7 @@ our @EXPORT = qw(which_perl perl_lib makefile_name makefile_backup HARNESS_VERBOSE PREFIX MAKEFLAGS + PERL_INSTALL_QUIET ); my %default_env_keys; @@ -97,7 +98,7 @@ MakeMaker::Test::Utils - Utility routines for testing MakeMaker =head1 DESCRIPTION -A consolidation of little utility functions used through out the +A consolidation of little utility functions used throughout the MakeMaker test suite. =head2 Functions @@ -138,6 +139,7 @@ sub which_perl { last if -x $perlpath; } } + $perlpath = qq{"$perlpath"}; # "safe... in a command line" even with spaces return $perlpath; } @@ -213,7 +215,7 @@ sub make { my $make = $Config{make}; $make = $ENV{MAKE} if exists $ENV{MAKE}; - return $make; + return $Is_VMS ? $make : qq{"$make"}; } =item B @@ -304,10 +306,7 @@ sub run { # 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 - ($] > 5.00554 and MM->os_flavor_is('OS/2')) - ) { + if (MM->can_redirect_error) { return `$cmd 2>&1`; } else {