summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-12-31 15:07:16 +0000
committerNicholas Clark <nick@ccl4.org>2005-12-31 15:07:16 +0000
commitaec56d9948abc4f2d69ad69586b8074e1737d904 (patch)
tree0b32ae399e504f0c038c9beb8522114cc09b999a /t
parent23976bdd8b5f2a6f59457e3791fbf2943743f027 (diff)
downloadperl-aec56d9948abc4f2d69ad69586b8074e1737d904.tar.gz
Add a test for change 26547. (We no longer expect to see errors about
unbalanced string table reference counts.) p4raw-id: //depot/perl@26548
Diffstat (limited to 't')
-rw-r--r--t/op/stash.t16
1 files changed, 15 insertions, 1 deletions
diff --git a/t/op/stash.t b/t/op/stash.t
index 744177511d..3d9d0841da 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 { // }; %::=""',
+ '',
+ '',
+ );
+}