X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F07-context_info.t;h=b32dba7670e39b963cad919597136f3fafa77b6c;hb=3beb96a81eebadf62454ea90eecd4b9dd36bdce5;hp=58ea97b6d579d7c6735178170fa22e73963f0029;hpb=d3500bc9b8882716ee933336bb903e20735e54ed;p=perl%2Fmodules%2FScope-Upper.git diff --git a/t/07-context_info.t b/t/07-context_info.t index 58ea97b..b32dba7 100644 --- a/t/07-context_info.t +++ b/t/07-context_info.t @@ -45,8 +45,11 @@ sub expected { } if ($top) { - $want = "$]" < 5.015_001 ? '' : undef; - $hints &= ~HINT_BLOCK_SCOPE if $Config{usesitecustomize}; + $want = "$]" < 5.015_001 ? '' : undef; + $hints &= ~HINT_BLOCK_SCOPE if $Config{usesitecustomize}; + $hints |= HINT_BLOCK_SCOPE if "$]" >= 5.019003; + $warnings = sub { use warnings; (caller 0)[9] }->() if "$]" < 5.007 + and not $^W; } my @exp = (