⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 liblist.t

📁 source of perl for linux application,
💻 T
字号:
#!/usr/bin/perl -wBEGIN {    if( $ENV{PERL_CORE} ) {        chdir 't' if -d 't';        unshift @INC, '../lib';    }    else {        unshift @INC, 't/lib';    }}chdir 't';use strict;use Test::More tests => 6;BEGIN {    use_ok( 'ExtUtils::Liblist' );}ok( defined &ExtUtils::Liblist::ext,     'ExtUtils::Liblist::ext() defined for backwards compat' );{    my @warn;    local $SIG{__WARN__} = sub {push @warn, [@_]};    my $ll = bless {}, 'ExtUtils::Liblist';    my @out = $ll->ext('-ln0tt43r3_perl');    is( @out, 4, 'enough output' );    unlike( $out[2], qr/-ln0tt43r3_perl/, 'bogus library not added' );    ok( @warn, 'had warning');    is( grep(/\QNote (probably harmless): No library found for \E(-l)?n0tt43r3_perl/, map { @$_ } @warn), 1 ) || diag join "\n", @warn;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -