From: David Mitchell Date: Fri, 12 Jun 2009 15:29:12 +0000 (+0100) Subject: fully sync blead with B::Debug 1.11 (debug.t was out of date) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=85da676d838429b10c2026947082857664e55cc7;p=p5sagit%2Fp5-mst-13.2.git fully sync blead with B::Debug 1.11 (debug.t was out of date) --- diff --git a/ext/B/t/debug.t b/ext/B/t/debug.t index b37565c..4285fe3 100644 --- a/ext/B/t/debug.t +++ b/ext/B/t/debug.t @@ -24,7 +24,7 @@ $| = 1; use warnings; use strict; use Config; -use Test::More tests => 7; +use Test::More tests => 8; use B; use B::Debug; @@ -51,6 +51,7 @@ $a =~ s/\s+/ /g; $a =~ s/\b(s|foo|bar|ullsv)\b\s?//g; $a =~ s/^\s+//; $a =~ s/\s+$//; +$a =~ s/\s+nextstate$//; # if $] < 5.008001; # 5.8.0 adds it. 5.8.8 not anymore my $is_thread = $Config{use5005threads} && $Config{use5005threads} eq 'define'; if ($is_thread) { $b=<debug" $redir`; like($a, qr/op_next\s+0x0/m); $a = `$^X $path "-MO=Debug" -e "B::main_start->debug" $redir`; like($a, qr/PL_ppaddr\[OP_ENTER\]/m); + +# pass missing FETCHSIZE, fixed with 1.06 +my $tmp = "tmp.pl"; +open TMP, "> $tmp"; +print TMP 'BEGIN{tie @a, __PACKAGE__;sub TIEARRAY {bless{}} sub FETCH{1}}; +print $a[1]'; +close TMP; +$a = `$^X $path "-MO=Debug" $tmp $redir`; +unlink $tmp; +unlike($a, qr/locate object method "FETCHSIZE"/m);