File: local_lib_shell_first.t

package info (click to toggle)
cpanminus 1.7048-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,372 kB
  • sloc: perl: 14,713; makefile: 5
file content (20 lines) | stat: -rw-r--r-- 422 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# https://github.com/miyagawa/cpanminus/issues/263
use strict;
use xt::Run;
use Test::More;
use local::lib ();

run '-Uf', 'Params::Util'; # remove from site_perl

{
    local %ENV = %ENV;
    my $lib = "$ENV{PERL_CPANM_HOME}/perl5";
    local::lib->setup_local_lib_for($lib);

    run 'Sub::Exporter';
    unlike last_build_log, qr/Installing the dependencies failed.*Params::Util/;
}

run 'Params::Util';

done_testing;