X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Faccessors_xs_cachedwarn.t;h=f7c2c6b1f9ed535f51bcbcc00a88cd17f49fd2bd;hb=5808b2245979b6d4c0582c10892e8526aa00d673;hp=42f0ebfafaa0722901c4a84b41fa1676c1719ddd;hpb=5fc5d14fc03ead62f3756b2660a52547d789811f;p=p5sagit%2FClass-Accessor-Grouped.git diff --git a/t/accessors_xs_cachedwarn.t b/t/accessors_xs_cachedwarn.t index 42f0ebf..f7c2c6b 100644 --- a/t/accessors_xs_cachedwarn.t +++ b/t/accessors_xs_cachedwarn.t @@ -19,11 +19,10 @@ BEGIN { } use AccessorGroupsSubclass; -$Class::Accessor::Grouped::USE_XS = 1; my $obj = AccessorGroupsSubclass->new; -my $obj2 = AccessorGroups->new; my $deferred_stub = AccessorGroupsSubclass->can('singlefield'); +my $obj2 = AccessorGroups->new; my @w; { @@ -40,7 +39,7 @@ my @w; is (@w, 3, '3 warnings total'); is ( - scalar (grep { $_ =~ /^\QDeferred version of method AccessorGroups::singlefield invoked more than once/ } @w), + scalar (grep { $_ =~ /^\QDeferred version of method AccessorGroupsParent::singlefield invoked more than once/ } @w), 3, '3 warnings produced as expected on cached invocation during testing', ) or do {