X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F18-opinfo.t;fp=t%2F18-opinfo.t;h=c9398cc38799e4946259ca330b101e9da9cb4a63;hb=579f1710492a3864774affb698358c8b3aa4bd80;hp=a67021e47286fbf1ae7b9ebb42f00b771b755420;hpb=90ca07f2bcc731f8a3118fecdfffbd8975686eaa;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/t/18-opinfo.t b/t/18-opinfo.t index a67021e..c9398cc 100644 --- a/t/18-opinfo.t +++ b/t/18-opinfo.t @@ -11,8 +11,12 @@ use Variable::Magic qw/wizard cast dispell VMG_OP_INFO_NAME VMG_OP_INFO_OBJECT/; sub Variable::Magic::TestPkg::foo { } -my $aelem = $] <= 5.008003 ? 'aelem' : $] < 5.013 ? 'aelemfast' : 'sassign'; -my $aelemf = $] < 5.013 ? 'aelemfast' : 'sassign'; +my $is_5130_release = ($] == 5.013 && !$Config{git_describe}) ? 1 : 0; + +my $aelem = $] <= 5.008003 ? 'aelem' + : ($] < 5.013 or $is_5130_release) ? 'aelemfast' + : 'sassign'; +my $aelemf = ($] < 5.013 or $is_5130_release) ? 'aelemfast' : 'sassign'; my $aelemf_op = $aelemf eq 'sassign' ? 'B::BINOP' : $Config{useithreads} ? 'B::PADOP' : 'B::SVOP';