Permalink
Browse files

Unset PERL_MB_OPT env. var in case it sets --destdir.

In such a case the install.t will fail erronously.
  • Loading branch information...
1 parent adf315c commit ea6d110a4bb2e0e33bc4ab527549b778e963ac5b @juster committed Aug 19, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 t/install.t
View
@@ -16,6 +16,9 @@ my $dir = tempdir('test_local_lib-XXXXX', DIR => Cwd::abs_path('t'), CLEANUP =>
use local::lib ();
local::lib->import($dir);
+# Unset PERL_MB_OPT in case it uses --destdir
+local $ENV{ 'PERL_MB_OPT' };
+
my $orig_dir = cwd;
SKIP: for my $dist_type (qw(EUMM MB)) {
chdir File::Spec->catdir($orig_dir, qw(t dist), $dist_type);

0 comments on commit ea6d110

Please sign in to comment.