X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcode.t;h=f2e1e2625f7e29cb213f4a1f9652beab9727f310;hb=a74b795d242b389680962863ff522ebaa9314eb5;hp=3ac711ade3da8598c317af2c031dca3500978e4b;hpb=219b7d3497fb2c1bca6e63f521f61b725e5afc7d;p=p5sagit%2FDevel-Size.git diff --git a/t/code.t b/t/code.t index 3ac711a..f2e1e26 100644 --- a/t/code.t +++ b/t/code.t @@ -30,13 +30,16 @@ cmp_ok(length prototype $anon_proto, '>', 0, 'prototype has a length'); cmp_ok($anon_proto_size, '>', $anon_size + length prototype $anon_proto, 'prototypes add to the size'); -{ +SKIP: { use vars '@b'; my $aelemfast_lex = total_size(sub {my @a; $a[0]}); my $aelemfast = total_size(sub {my @a; $b[0]}); + # This one is sane even before Dave's lexical aelemfast changes: cmp_ok($aelemfast_lex, '>', $anon_size, 'aelemfast for a lexical is handled correctly'); + skip('alemfast was extended to lexicals after this perl was released', 1) + if $] < 5.008004; cmp_ok($aelemfast, '>', $aelemfast_lex, 'aelemfast for a package variable is larger'); }