X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F07-context_info.t;h=32a943be64652ef3e40d85956a30f5cc84727862;hb=d5220346a9c7076bca46b2bb61e313750c683a7b;hp=58ea97b6d579d7c6735178170fa22e73963f0029;hpb=832f6a4eae21bec85e1cb1043fbc41fcf59cbfcd;p=perl%2Fmodules%2FScope-Upper.git diff --git a/t/07-context_info.t b/t/07-context_info.t index 58ea97b..32a943b 100644 --- a/t/07-context_info.t +++ b/t/07-context_info.t @@ -45,8 +45,10 @@ 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}; + $warnings = sub { use warnings; (caller 0)[9] }->() if "$]" < 5.007 + and not $^W; } my @exp = (