From: Nicholas Clark Date: Sat, 31 Dec 2005 15:07:16 +0000 (+0000) Subject: Add a test for change 26547. (We no longer expect to see errors about X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=aec56d9948abc4f2d69ad69586b8074e1737d904;p=p5sagit%2Fp5-mst-13.2.git Add a test for change 26547. (We no longer expect to see errors about unbalanced string table reference counts.) p4raw-id: //depot/perl@26548 --- diff --git a/t/op/stash.t b/t/op/stash.t index 7441775..3d9d084 100644 --- a/t/op/stash.t +++ b/t/op/stash.t @@ -7,7 +7,7 @@ BEGIN { require "./test.pl"; -plan( tests => 8 ); +plan( tests => 9 ); # Used to segfault (bug #15479) fresh_perl_is( @@ -36,3 +36,17 @@ ok( defined %{"bongo::shaftsbury::"}, q(- work with hard refs too) ); package tyrone::slothrop; $bongo::shaftsbury::scalar = 1; + +package main; + +# Used to warn +# Unbalanced string table refcount: (1) for "A::" during global destruction. +# for ithreads. +{ + local $ENV{PERL_DESTRUCT_LEVEL} = 2; + fresh_perl_is( + 'package A; sub a { // }; %::=""', + '', + '', + ); +}