Skip to content

Commit

Permalink
Unset PERL_MB_OPT env. var in case it sets --destdir.
Browse files Browse the repository at this point in the history
In such a case the install.t will fail erronously.
  • Loading branch information
juster committed Aug 19, 2010
1 parent adf315c commit ea6d110
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions t/install.t
Expand Up @@ -16,6 +16,9 @@ my $dir = tempdir('test_local_lib-XXXXX', DIR => Cwd::abs_path('t'), CLEANUP =>
use local::lib (); use local::lib ();
local::lib->import($dir); local::lib->import($dir);


# Unset PERL_MB_OPT in case it uses --destdir
local $ENV{ 'PERL_MB_OPT' };

my $orig_dir = cwd; my $orig_dir = cwd;
SKIP: for my $dist_type (qw(EUMM MB)) { SKIP: for my $dist_type (qw(EUMM MB)) {
chdir File::Spec->catdir($orig_dir, qw(t dist), $dist_type); chdir File::Spec->catdir($orig_dir, qw(t dist), $dist_type);
Expand Down

0 comments on commit ea6d110

Please sign in to comment.