Skip to content

Commit

Permalink
Give EU::CB 04-base.t an absolute path on VMS.
Browse files Browse the repository at this point in the history
catfile() with an empty string as a first argument does *not*
produce an absolute path on VMS (and probably only does so by
accident elsewhere).  For purposes of the test, it seems that
any absolute path would do, so this could probably be done
portably, but on the eve of 5.14 let's make a separate code
path for VMS and leave everyone else as is for now.
  • Loading branch information
craigberry committed Apr 15, 2011
1 parent b49fc16 commit 2f81e8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dist/ExtUtils-CBuilder/t/04-base.t
Expand Up @@ -45,7 +45,9 @@ isa_ok( $base, 'ExtUtils::CBuilder::Base' );
}

{
my $path_to_perl = File::Spec->catfile( '', qw| usr bin perl | );
my $path_to_perl = $^O eq 'VMS'
? 'perl_root:[000000]perl.exe'
: File::Spec->catfile( '', qw| usr bin perl | );
local $^X = $path_to_perl;
is(
ExtUtils::CBuilder::Base::find_perl_interpreter(),
Expand Down

0 comments on commit 2f81e8f

Please sign in to comment.