From: Vincent Pit Date: Thu, 12 Mar 2015 15:10:10 +0000 (-0300) Subject: Skip t/15-lvalue-sub.t before perl 5.16 X-Git-Tag: v0.02~12 X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FVariable-Temp.git;a=commitdiff_plain;h=44bbd934b677f763001b163b1b96c58d6d6b8602 Skip t/15-lvalue-sub.t before perl 5.16 With these old perls, you cannot pass a subroutine entry to the \$ prototype. --- diff --git a/t/15-lvalue-sub.t b/t/15-lvalue-sub.t index baae5e4..f1ed334 100644 --- a/t/15-lvalue-sub.t +++ b/t/15-lvalue-sub.t @@ -5,7 +5,15 @@ use warnings; use Variable::Temp 'temp'; -use Test::More tests => 10; +use Test::More; + +BEGIN { + if ("$]" >= 5.016) { + plan tests => 10; + } else { + plan skip_all => 'perl 5.16 required to have \$ proto accept sub entries'; + } +} { package Variable::Temp::TestPkg;